From: Marcelo M. <mm...@ac...> - 2005-11-23 00:23:22
|
William S Fulton wrote: > Perl, Tcl and Python no longer mangle global variable wrappers with > _wrap. Isn't this a bit dangerous and likely to cause a name clash with > user code? if you mean the set/get functions, well, yes, for a long time we have this possible conflict, since if you have struct A { int x; }; then swig generates the methods A_x_set/ A_x_get. The same for global variables I guess, ie,it will generate the methods x_set/x_get. The problem is that there are many examples (and the docs) which depend on this rule, so you can do for example %extend A { int x; } and manually provide the A_x_set/A_x_get methods. In some moment we will need to break the entire universe in some moment and force everyone to use either _wrap_A_x_get/_wrap_A_x_set or swig_A_x_get/swig_A_x_set. > > The perl test-suite seems to be taking a lot longer to run. I just timed > it and it takes more than TWICE as long as 1.3.27. SWIG must be more > than 2x slower as this time includes the C++ compiler/link time as > well as executing some perl tests. What is causing this huge change? > Is it because the preprocessor, like me, also needs extra time to > decipher what the hell is going on with all the newly introduced macro > obfuscation? ;) > > I spend hours and hours testing the code before releases and it looks > like this is now going to take even longer. If there is anything that > can be done to return these languages back to the speed they used to > be I'd appreciate it very much. > well, we can try to profile swig again and look for some bottlenecks.... let me see if I can test something later. Also, there are newer and larger tests for perl, tcl and ruby, like primitive_types.cpptest. > Maybe it is time to add in the CMake nightly regression testing > which can be run without any effort in the background so my own > testing will no longer be necessary. you mean we can do that?, where?, in sourceforge? > Or maybe someone wants to buy me a > multiprocessor 4GHz machine ;) > me too!, however, first we will need swig to be able to recognize something like: make -j4 check-python-test-suite Marcelo > Ever hopeful! > William > > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. Get Certified Today > Register for a JBoss Training Course. Free Certification Exam > for All Training Attendees Through End of 2005. For more info visit: > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click > _______________________________________________ > Swig-devel mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swig-devel |