Cache dot sources in the CGI script.
* wrap/python/ajax/spot.in (render_dot, render_dot_maybe) (render_automaton, render_formula): Cache the dot source, so that we do not have to regenerate two pictures from the same contents. * wrap/python/spot.i: Typo in the ostringstream declaration.
This commit is contained in:
parent
0d2ac81a8c
commit
155ba42c90
3 changed files with 48 additions and 21 deletions
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
// Copyright (C) 2009, 2010, 2011 Laboratoire de Recherche et Développement
|
||||
// de l'Epita (LRDE).
|
||||
// Copyright (C) 2003, 2004, 2005, 2006 Laboratoire d'Informatique
|
||||
|
|
@ -216,7 +217,7 @@ using namespace spot;
|
|||
|
||||
}
|
||||
|
||||
%nodefault std::ostream;
|
||||
%nodefaultctor std::ostream;
|
||||
namespace std {
|
||||
class ostream {};
|
||||
class ofstream : public ostream
|
||||
|
|
@ -230,7 +231,7 @@ namespace std {
|
|||
public:
|
||||
ostringstream();
|
||||
std::string str() const;
|
||||
~ofstream();
|
||||
~ostringstream();
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue