2009/1/25 Slava Pestov <[email protected]>: > Perhaps you can share your code and I might be able to give additional > hints. I'm really keen on closing this 10x performance gap with C.
No problem. I'd not done so before purely because I didn't want to just dump a "please fix my code" posting on the list :-) I've uploaded my code to Bitbucket (I use Mercurial rather than git - hope that's OK). You can get the current version from http://bitbucket.org/pmoore/factor-peg/raw/ca3cd70af2a0/lpeg.factor or look at the whole repository at http://bitbucket.org/pmoore/factor-peg/ I think the key areas for improvement now are the any and char opcodes - those are the ones used in the inner loop in my current tests (if I do 3000000 test-vm 10 do-test-run print-timings, those opcodes run 30m times each). The jmp opcode is also used that many times, but that looks faily tight to me... Thanks for the interest! Paul. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
