gujjula / core-plot

Automatically exported from code.google.com/p/core-plot
0 stars 0 forks source link

Patch for /framework/Source/CPUtilities.m #256

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
By caching the values of CPDecimalFromInteger for 0, 1, and 2, we improve our 
speed by about 10x.  The code I was using was taking 8000ms and after 
implementing this change it loaded in around 800ms.  

Original issue reported on code.google.com by keith.pe...@gmail.com on 10 Feb 2011 at 10:42

Attachments:

GoogleCodeExporter commented 9 years ago
Interesting. Do you have a feeling why it is such a big deal? Where are those 
methods getting called from so often?

I've pushed the patch.

(Do you want commit rights for Core Plot?)

Thanks!

Original comment by drewmcco...@mac.com on 11 Feb 2011 at 8:51