beelsebob / CoreParse

A shift/reduce parsing framework for Mac OS X and iOS
BSD 3-Clause "New" or "Revised" License
366 stars 49 forks source link

Small optimizations and additions. #18

Closed andrimarjonsson closed 12 years ago

andrimarjonsson commented 12 years ago
beelsebob commented 12 years ago

Hiya, that looks like a really good set of patches. The only issues I can see are that setDelegate: on CPParser appears not to actually set the delegate (only do the caching). And a tiny style issue – it would be nice if you could typedef the two introduced structs, and use the new type to declare them.

I guess I should add a pair of tests to check that setting the delegate actually sets it.

Thanks

Tom Davie

andrimarjonsson commented 12 years ago

Wow, you are right. Well that's a bit embarrassing. See you have already merged, guessing you are then fixing the bugs I introduced along with these changes. If not I can do it tomorrow evening, no problem!

Sorry for not replying earlier. Day job and all.

beelsebob commented 12 years ago

No probs at all,

They gave a nice little speed gain. You may have noticed that I've been working on my own optimisations too, so parsing should now be roughly twice as fast as it was before.

Tom Davie

On 23 Aug 2012, at 23:31, Andri Mar Jónsson notifications@github.com wrote:

Wow, you are right. Well that's a bit embarrassing. See you have already merged, guessing you are then fixing the bugs I introduced along with these changes. If not I can do it tomorrow evening, no problem!

Sorry for not replying earlier. Day job and all.

— Reply to this email directly or view it on GitHub.