diff --git a/SWIG/CHANGES.current b/SWIG/CHANGES.current index 7d189a885..9acebee0e 100644 --- a/SWIG/CHANGES.current +++ b/SWIG/CHANGES.current @@ -113,13 +113,13 @@ Version 1.3.28 (unreleased) But since normal C++ containers do not properly ref/unref their items, you should use the safer versions: - %template(pyset) std::set; - %template(pyvector) std::vector; - %template() std::pair; - %template(pyvector) std::map; + %template(pyset) std::set; + %template(pyvector) std::vector; + %template() std::pair; + %template(pyvector) std::map; .... - where swig::PyItem is a PyObject * envelope class provided + where swig::PyObject_ptr is a PyObject * envelope class provided to safely incref/decref the python object. So, now you can use all the STL/STD containers as native @@ -248,7 +248,14 @@ Version 1.3.28 (unreleased) swig-1.3.26 0.80s swig-CVS 0.60s - Hence, now the proxy overhead is almost insignificant. + Hence, now for practical porpuses, the proxy overhead + is insignificant. + + Note that the performance numbers we are showing is for + a simple module (two types) and a simple function (one + argument). For real situations, with modules with many + more types and/or functions with many more parameters, + you will see even better results. 10/31/2005: mmatus diff --git a/SWIG/Examples/test-suite/python/li_std_map.i b/SWIG/Examples/test-suite/python/li_std_map.i index 4ff822d78..eaa415424 100644 --- a/SWIG/Examples/test-suite/python/li_std_map.i +++ b/SWIG/Examples/test-suite/python/li_std_map.i @@ -29,8 +29,8 @@ namespace std %template(pairiiAc) pair >; - %template() pair; - %template(pymap) map; + %template() pair; + %template(pymap) map; } diff --git a/SWIG/Examples/test-suite/python/li_std_set.i b/SWIG/Examples/test-suite/python/li_std_set.i index 2d7b0cce4..f0fddb058 100644 --- a/SWIG/Examples/test-suite/python/li_std_set.i +++ b/SWIG/Examples/test-suite/python/li_std_set.i @@ -14,4 +14,4 @@ -%template(pyset) std::set; +%template(pyset) std::set; diff --git a/SWIG/Examples/test-suite/python/li_std_vector.i b/SWIG/Examples/test-suite/python/li_std_vector.i index 4da1dde6e..d9a50526e 100644 --- a/SWIG/Examples/test-suite/python/li_std_vector.i +++ b/SWIG/Examples/test-suite/python/li_std_vector.i @@ -121,4 +121,4 @@ std::vector vecStr(std::vector v) { %array_functions(int,ArrInt) -%template(pyvector) std::vector; +%template(pyvector) std::vector;