Skip to content
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

Use 'hotfix' for parser performance issue #1531

Merged
merged 1 commit into from
Jun 2, 2021
Merged

Conversation

orangejulius
Copy link
Member

A performance issue in the Pelias Parser where certain inputs can cause long parse times and out of memory errors was recently reported.

This change implements a short term fix by disabling some functionality around unit number parsing that was contributing to the issue. From our analysis it's not so much that the unit number parsing caused the issue, but it was the most recently added functionality that contributed to it.

While we develop a longer term fix, which should allow us to keep unit number parsing around, this "hotfix" will keep everything running smoothly. Unit numbers are not yet fully supported by Pelias so there shouldn't be any major loss in functionality.

Fixes #1530

A performance issue in the Pelias Parser where certain inputs can cause
long parse times and out of memory errors was [recently reported](#1530).

This change implements a short term fix by disabling some functionality
around unit number parsing that was contributing to the issue. From our
analysis it's not so much that the unit number parsing _caused_ the
issue, but it was the most recently added functionality that contributed
to it.

While we develop a longer term fix, which should allow us to keep unit
number parsing around, this "hotfix" will keep everything running
smoothly. Unit numbers are not yet fully supported by Pelias so there
_shouldn't_ be any major loss in functionality.

Fixes #1530
@orangejulius orangejulius merged commit 6e5ce2d into master Jun 2, 2021
@orangejulius orangejulius deleted the pelias-parser-hotfix branch June 2, 2021 17:54
orangejulius added a commit that referenced this pull request Nov 29, 2021
Historically we've kept most Pelias NPM dependencies on carat versions,
but because the Pelias Parser can cause changes in acceptance-test
results for any change (minor or even bug fix), we've kept it pinned to
a specific version so we can explicitly upgrade.

Recently, we were on a [hotfix
branch](#1531) of the parser, but
while switching back to using a version specification, we switched to
[using a carat
range](#1565).

While manually bumping the version on a frequent basis is a bit
annoying, it helps avoid any chance that unexpected or untested parser
changes will find their way into the API releases, so this change brings
us back to a pin of the current latest version of the Pelias Parser.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extremely slow query that generates an out of memory error
1 participant