amorilia/pyffi — pull request #4 by infectedsoundsystem (2011-10-19 22:30:40+00:00)
Title: More performance changes - 18% reduction in CPU time

Made some changes in update_tangent_space & Vector3 to reduce overhead and prevent unnecessary creation of objects. The result is an 18% reduction in CPU time taken to optimise nif's :D

Please check the integrity of the changes, I still only have a basic understanding of what the code is actually manipulating. The optimised meshes seem fine though.

Ran against 4 copies of tenpennychandelierdark.nif using Python 3.2.2

master:

real 1m31.628s
user 2m59.182s
sys 0m0.707s

performance:

real 1m16.599s
user 2m27.847s
sys 0m0.847s