Repository navigation
Replies: 3 comments
|
Hello, folks. I saw some of the discussion on the forum and wanted to offer some performance patches. I've worked on some other projects sort of in this space, like tilemaker. However, I have no direct experience with Overpass or its query language. Also, my professional background hasn't included C++ for quite some time. Those two factors mean that I'll be driving my process largely via Claude. I will be reviewing anything I propose and treating it as something I'm putting my own name on, and I've run the overall approach past @lonvia. My working space is in cldellow/Overpass-API, I hope to propose a couple of patches at a time, starting small. Reviewers on patches sent here would definitely be appreciated. Feel free to poke around in the fork, too, but be warned that it's largely Claude talking to itself. My overall approach:
I'm slowly learning about Overpass through this process. Pointers from people who have experience would be helpful, too, though. @lonvia also shared with me some analysis @b1tw153 did on real queries on the public servers, which I think will be quite helpful in targeting my future work. |
|
Hi, I'm running a somewhat heavily modified fork with lots of performance and also architectural changes and improvements over at https://github.com/mmd-osm/Overpass-API and https://codeberg.org/mmd/Overpass-API - that includes multi-threaded importing with PBF support, as well as some language enhancements. I have modified the underlying disk format as well, so you won't be able to try this out with your existing overpass database. There are some conversion tools though that support conversion to this new format. The project readme page is probably the best overview of all the changes. If you like you can also take a look at my experimental corner over at the wiki, which has direct overpass turbo links to try things out: https://wiki.openstreetmap.org/wiki/User:Mmd/Overpass_API_-_experimental_corner Although it's labeled as experimental fork, two projects are currently using it to my knowledge: cartes.app and OpenGeofiction. If you like you can try out their overpass instance to test some features, like PBF or OPL output: https://overpass.opengeofiction.net - cartes.app has documented their setup here: https://codeberg.org/cartes/serveur/issues/151 I ran a lot of performance testing on the existing production log files, and tried to identifies areas that need improvement. Some of those are already reflected as issue on the official Overpass repo. Besides, I ran some tests on recreating the attic database, starting from 2012 planet file and then processing some 10+ years worth of minutely minutes. If anyone wants to try out a full history planet file, that's currently available on the dev server and could be made available for download, if there's interest. I can also help with getting the existing unit tests up and running in CI/CD. All contributions are largely "Claude free" on my end, at least for anything that's older than 1-2 years :) |
Sort of along these lines, I extracted a rough fixed regression suite: https://overpass-coverage.github.io/ The process was:
The result is ~700 or so queries which run in about 400 CPU seconds. It has limitations:
|
Uh oh!
There was an error while loading. Please reload this page.
And thanks to @lonvia for enabling discussions on the repo. I understand there are a few people who are interested in contributing, so I thought I'd start this thread to get to know people.
I've been maintaining the b1tw153/Overpass-API fork which has better shell scripts, some security fixes, and a container build for Overpass. I also put together an EBNF grammar for Overpass QL. I'm currently working on a database file validator, an improved importer for planet/history data, and a conformance test suite.
If you're joining the discussion, say Hi!
All reactions