Good job, a fast JSON parser would be very useful to have. I have two
suggestions for your code:

- You should remove the old PEG parser from the source. There is no
point keeping it around if your version is faster.
- Don't use with-datastack as a workaround for making your code pass
the compiler. Learn how the compiler's stack checking works instead.

Slava

On Fri, May 29, 2009 at 4:56 PM, Philipp Winkler
<[email protected]> wrote:
> I'm playing with creating a twitter client. The existing json parser was a
> little slow so I added a hand rolled parser. For a ~120Kb string the PEG
> based parser takes 23 seconds, the hand rolled version takes 0.03 seconds.
>
> The code is at:
> http://github.com/philippwinkler/factor/tree/master
>
> I'm pretty sure what I have written is miles away from idiomatic factor so
> I would greatly appreciate any suggestions on how to bring in.
>
> Thanks!
> -phil
>
>
> ------------------------------------------------------------------------------
> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
> is a gathering of tech-side developers & brand creativity professionals. Meet
> the minds behind Google Creative Lab, Visual Complexity, Processing, &
> iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
> Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to