jonnyreeves / as3-vanilla

Extract strongly typed Objects from dynamic objects without writing a single line of code!
http://www.jonnyreeves.co.uk/2011/08/getting-started-with-vanilla/
MIT License
81 stars 15 forks source link

Tuning the performance ~20 times faster by caching InjectionMap instances #11

Closed nguyenbs closed 9 years ago

nguyenbs commented 9 years ago

I have to process ~10,000 JSON objects returned from a RESTful service. The original version of Vanilla.extract() method took 8.5 seconds and it reached our response limitation requirement.

By using the caching, now it takes only ~0.4 second.

nguyenbs commented 9 years ago

I updated the code from your comment. Please do merge

nguyenbs commented 9 years ago

It's done!

jonnyreeves commented 9 years ago

Merged and released as 0.2.0, thanks.