Provide an option to set the re::engine to be used searches #214

wants to merge 2 commits into


None yet

3 participants

rsimoes commented Mar 14, 2012

The attached patch adds and documents this option:

=item B<--re-engine=name>

Use an alternative regular expression engine when searching. Pass the option,
e.g., "RE2" to load and use L<re::engine::RE2>.
Richard Simões added some commits Mar 14, 2012
Richard Simões provide a re-engine option bdb87d0
Richard Simões document option ed945e6

Why would someone want to do this? I don't understand the benefit, and there's nothing in the docs that explains the benefit.

rsimoes commented Mar 15, 2012

Perl's built-in regular expression engine is quite slow, for one. There are a couple re::engine modules that use NFA algorithms (RE2, Plan9), performing far better on large bodies of text.

And someone else pointed this out to me, but using re::engine::PCRE would let one use ack to emulate grep -P.

If either of those are persuasive, I can write a follow-up patch to better-document the option.

hoelzro commented Aug 28, 2013

This has been moved to the ack2 queue: petdance/ack2#161

@hoelzro hoelzro closed this Aug 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment