Skip to content

Cache grammar instance for repeated parsing#1

Open
pszmagaj wants to merge 1 commit intomasterfrom
codex/cache-grammar-in-queryparser
Open

Cache grammar instance for repeated parsing#1
pszmagaj wants to merge 1 commit intomasterfrom
codex/cache-grammar-in-queryparser

Conversation

@pszmagaj
Copy link
Copy Markdown
Owner

Summary

  • persist generated Grammar instance in QueryParser
  • reuse Grammar across parse() calls and add a method to clear the cache
  • test that grammar is cached and reused between parses

Testing

  • phpunit (fails: phpunit: No such file or directory)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant