kschiess / parslet

A small PEG based parser library. See the Hacking page in the Wiki as well.
kschiess.github.com/parslet
MIT License
809 stars 95 forks source link

Using accellerators #97

Closed lyudmil closed 8 years ago

lyudmil commented 10 years ago

Thank you for all your great work. Parslet is awesome.

I've unfortunately run into the dreaded problem of needing to parse rather large files, which means I'm running into problems with performance. Are accelerators ready to try? I've updated my parslet dependencies to use the master branch, but I cannot seem to load parslet/accelerators.

floere commented 10 years ago

This example gives you a few helpful pointers: https://github.com/kschiess/parslet/blob/master/example/optimized_erb.rb

Is this what you are looking for?

require 'parslet/accelerator'
floere commented 10 years ago

Apologies, it is indeed not yet gemified in 1.5.0.

lyudmil commented 10 years ago

This is exactly what I was looking at, but unfortunately require parslet/accelerator fails for me. I reinstalled parslet from source and tried to run the example you referred to but no dice.

lyudmil commented 10 years ago

Oh, sorry, I didn't see your last comment there. I can gemify it for you if you don't want to deal with it right now. I just wanted to make sure there wasn't a specific reason one shouldn't use accelerators right now.

kschiess commented 10 years ago

There's not. Can you work against master for now? I will release the accelerators as soon as someone brings me a use case ;)

kschiess commented 8 years ago

(closing due to inactivity)