NikhithaTarala / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

Enhance performance in XYSeries #174

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

the performance of getRange in XYSeries could be improved alot by avoiding to 
call size() which interrates over the whole array to determine the size. Using 
try/catch construction is not the nicest code but it works fast and reliable.

The patch to fix is attached.

Original issue reported on code.google.com by timpam...@gmail.com on 1 Feb 2012 at 2:56

Attachments:

GoogleCodeExporter commented 8 years ago
I made a new patch which doesn't rely on the try/catch workaround and even has 
enhanced performance.

Original comment by timpam...@gmail.com on 1 Feb 2012 at 5:12

Attachments:

GoogleCodeExporter commented 8 years ago
Looks like a very cool contribution, thanks!
Included in SVN rev. r365.

Original comment by dandrome...@gmail.com on 10 Mar 2012 at 5:33