Blender Git Loki
Git Commits -> Revision 6b7c4e0
Revision 6b7c4e0 by Campbell Barton (master) October 3, 2006, 05:11 (GMT) |
Mathutils.Vector speedup removed the need for casting python objects to Vectors pyobjects when performing vec/float arithmatic. a PyObject for coercing has also been removed from the vector struct so a little less memory will be used also. Benchmarked before and after this change ___________________________________ import Blender v= Blender.Mathutils.Vector m= Blender.Mathutils.Matrix a= v(1,2,3) b= v(3,2,1) c= m() t= Blender.sys.time() for i in xrange(20000000): a*b a*10 a/10 a+b b-a a*c print Blender.sys.time()-t _______________________________________ Before 63.5sec after 49.5 about 3 sec of that is looping |
Commit Details:
Full Hash: 6b7c4e09e8e1051e89b7a93d998810657b8a93e9
SVN Revision: 8579
Parent Commit: 815f115
Lines Changed: +153, -149