tests/1.vsa
author Ryan C. Gordon <icculus@icculus.org>
Wed, 17 Apr 2013 23:30:10 -0400
changeset 1128 a66416e507d1
parent 5 045855c506f8
permissions -rw-r--r--
Optimizations to preprocessor's find_define(). - don't check for __FILE__ and __LINE__ until after we've checked our hash, since this is the less likely case. - Check against the hard-coded hash value of the strings "__FILE__" and "__LINE__" to avoid unnecessary strcmp() calls. This dropped the profile of this function from 20% of our total CPU time to 10%. Of that 10%, 70% is now the hashing function.

(binary:application/octet-stream)