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

perf improvement for "verbose" PIP query #67

Merged
merged 1 commit into from
Jul 21, 2020
Merged

Conversation

missinglink
Copy link
Member

@missinglink missinglink commented Jul 21, 2020

since #65 landed and the dist files have been (at least partially?) updated, we can now simplify the 'verbose PIP' query πŸš€

I've also taken the opportunity to rename a couple of the variables to be more readable.

I ran the query for lat/lon NYC on a full-planet database before and after this change (just via the CLI with no mmap) and the difference was considerable:

before: 5.481ms vs after: 0.228ms

cc @Joxit

I should probably purge the CDN cache for spatial so that all the files get regenerated with #65 before I merge this πŸ€·β€β™‚οΈ
actually no need, this will happen naturally and isn't required to merge this.

@missinglink missinglink changed the title refactor(pip): perf improvement for "verbose" query perf improvement for "verbose" query Jul 21, 2020
@missinglink missinglink requested a review from Joxit July 21, 2020 12:11
@missinglink missinglink changed the title perf improvement for "verbose" query perf improvement for "verbose" PIP query Jul 21, 2020
@missinglink missinglink marked this pull request as ready for review July 21, 2020 12:14
@missinglink missinglink merged commit 46bf315 into master Jul 21, 2020
@missinglink missinglink deleted the pip_performance branch July 21, 2020 12:16
@missinglink
Copy link
Member Author

I was worried that this might not be backwards compatible but the und default names always existed so πŸŽ‰

@Joxit
Copy link
Member

Joxit commented Jul 21, 2020

You did it quickly ! πŸ˜†

@missinglink
Copy link
Member Author

Haha yeah I thought about this back when I wrote #65 so it just took me the time to type it out πŸ˜†

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.

None yet

2 participants