-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve parser performance #11
Comments
jmurty
added a commit
that referenced
this issue
Jun 6, 2017
- use faster pyparsing grammar constructs and arrangements to significantly speed up parsing - enable skipped parsing unit tests now that they are not infeasibly slow - add testing requirements to setup.py Anecdotal speed increase is from about 30 seconds to run the `test_date_values` tests down to below 3 seconds. See also #17
cogat
added a commit
that referenced
this issue
Jun 6, 2017
#11 Achieve order of magnitude speedup of parser
This is resolved by #56 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The parser seems to take a while to compile, and another while to parse dates, especially sets of multiple dates.
The EDTF grammar is geared towards exactness rather than speed, meaning that there are strict definitions of numbers which can be used in months, etc.
There might be ways of relaxing the lexical definitions in order to improve parse speed, and then perhaps validating actual values using something simpler after parse time.
The text was updated successfully, but these errors were encountered: