Campbell Barton
cdec2b3d15
BGE Python API
...
Use 'const char *' rather then the C++ 'STR_String' type for the attribute identifier of python attributes.
Each attribute and method access from python was allocating and freeing the string.
A simple test with getting an attribute a loop shows this speeds up attribute lookups a bit over 2x.
2009-02-19 13:42:07 +00:00
..
2002-11-25 15:29:57 +00:00
2002-12-27 13:11:01 +00:00
2008-04-16 22:40:48 +00:00
2002-11-25 15:29:57 +00:00
2002-12-27 13:11:01 +00:00
2002-11-25 15:29:57 +00:00
2002-12-27 13:11:01 +00:00
2002-11-25 15:29:57 +00:00
2002-12-27 13:11:01 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-03-01 19:46:50 +00:00
2002-12-27 13:11:01 +00:00
2002-11-25 15:29:57 +00:00
2002-12-27 13:11:01 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2002-11-25 15:29:57 +00:00
2002-12-27 13:11:01 +00:00
2009-02-19 07:01:49 +00:00
2002-12-27 13:11:01 +00:00
2002-11-25 15:29:57 +00:00
2002-12-27 13:11:01 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2009-02-19 13:42:07 +00:00
2009-02-19 13:42:07 +00:00
2008-09-06 14:13:31 +00:00
2002-11-25 15:29:57 +00:00
2004-04-24 06:40:15 +00:00
2004-04-24 06:40:15 +00:00
2002-12-27 13:11:01 +00:00
2009-02-19 13:42:07 +00:00
2009-02-19 13:42:07 +00:00
2009-02-15 23:26:00 +00:00
2002-11-25 15:29:57 +00:00
2002-12-27 13:11:01 +00:00
2009-02-19 13:42:07 +00:00
2009-02-19 13:42:07 +00:00
2002-11-25 15:29:57 +00:00
2002-12-27 13:11:01 +00:00
2008-04-16 22:40:48 +00:00