Menu

#1 uthash decreases performance under iPhone

open
nobody
None
5
2009-07-20
2009-07-20
No

If you include the uthash.h header file (v1.7) in an iPhone project the performance of the project will decrease in ~ 5 %.
It is noteworthy that you don't even need to create any hash table. By just including the header file, the performance decreases.

Steps to reproduce it:
1. Download cocos2d v0.8 ( http://www.cocos2d-iphone.org/download )
2. run the PerfomanceSpriteTest
3. Run Test A-9 with 250 sprites.
4. measure the FPS

Now repeat everything from step 2, but add the uthash.h file any file. eg:
Edit ActionManager.m
And add this line:

#import "uthash.h"

You will see that the performance decreases ~ 5 %.

Discussion