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
..
2009-02-19 13:42:07 +00:00
2009-02-19 13:42:07 +00:00
2008-09-17 01:29:54 +00:00
2008-09-17 01:29:54 +00:00
2009-02-19 13:42:07 +00:00
2008-04-16 22:40:48 +00:00
2008-09-26 02:27:59 +00:00
2008-09-24 03:12:10 +00:00
2008-09-04 20:51:28 +00:00
2008-09-26 02:27:59 +00:00
2009-02-19 13:42:07 +00:00
2009-02-19 13:42:07 +00:00
2008-09-26 02:27:59 +00:00
2008-09-26 02:27:59 +00:00
2008-09-26 02:27:59 +00:00
2008-09-26 02:27:59 +00:00
2008-09-24 03:12:10 +00:00
2008-09-04 20:51:28 +00:00
2008-04-16 22:40:48 +00:00
2008-04-16 22:40:48 +00:00
2008-09-04 20:51:28 +00:00
2008-10-11 22:29:50 +00:00
2008-04-16 22:40:48 +00:00
2008-09-14 12:41:42 +00:00
2008-09-04 20:51:28 +00:00
2009-01-14 22:33:39 +00:00
2008-04-16 22:40:48 +00:00
2008-06-23 20:41:18 +00:00
2008-04-16 22:40:48 +00:00
2008-09-25 16:19:07 +00:00
2008-04-16 22:40:48 +00:00
2008-10-08 03:16:19 +00:00
2008-09-18 01:46:28 +00:00
2008-08-06 10:23:47 +00:00
2008-07-25 13:45:57 +00:00
2008-09-06 14:13:31 +00:00
2008-09-04 20:51:28 +00:00