Blender Git Loki
Git Commits -> Revision 9d922b4
Revision 9d922b4 by Campbell Barton (master) April 11, 2009, 05:46 (GMT) |
Changed the script UI registration to import rather then run each python script, this means it caches the compiled pyc files after importing fro the first time. My times for importing 501 buttons_objects.py files were. - running each as a script 1.9sec - importing for the first time 1.8sec - importing a second time (using pyc files) 0.57sec Also added "bpy" to sys.modules so it can be imported. |
Commit Details:
Full Hash: 9d922b4c24538d53aed9b0661804652455f8a3b7
SVN Revision: 19653
Parent Commit: c7b5871
Lines Changed: +111, -50
8 Modified Paths:
/release/ui/buttons_objects.py (+1, -1) (Diff)
/source/blender/python/BPY_extern.h (+1, -1) (Diff)
/source/blender/python/intern/bpy_interface.c (+88, -32) (Diff)
/source/blender/python/intern/bpy_operator.c (+1, -1) (Diff)
/source/blender/python/intern/bpy_operator.h (+1, -1) (Diff)
/source/blender/python/intern/bpy_rna.c (+13, -8) (Diff)
/source/creator/creator.c (+1, -1) (Diff)
/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp (+5, -5) (Diff)
/source/blender/python/BPY_extern.h (+1, -1) (Diff)
/source/blender/python/intern/bpy_interface.c (+88, -32) (Diff)
/source/blender/python/intern/bpy_operator.c (+1, -1) (Diff)
/source/blender/python/intern/bpy_operator.h (+1, -1) (Diff)
/source/blender/python/intern/bpy_rna.c (+13, -8) (Diff)
/source/creator/creator.c (+1, -1) (Diff)
/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp (+5, -5) (Diff)