|
|
|
|
|
by Klathmon
3674 days ago
|
|
That's where a tool like this could come in handy. A general purpose regex optimizer can't make assumptions like you don't care about the ordering of sub-groups, but a tool like this can. If you are just looking for the fastest way to to match any 1 of these 40 keywords, this could make a fast regex that can minimize backtracking. Like I said, I have no idea if it would make any real difference, but if it did incorporating something like that into a build process for syntax highlighting packages could improve performance for a bunch of people. |
|