Skip to content

Conversation

@akx
Copy link
Contributor

@akx akx commented May 16, 2025

  • Makes parse_osm_data take ownership of the raw data instead of the caller cloning it. IOW, the parser function transmutes the raw data to the parsed stuff.
  • Similarly, SplitOsmData now does the work of splitting the elements by type, so the loops that handle them don't need to check for types themselves (and also can work without references, on the data itself.) (Future work could improve things there for less cloning.)
  • Makes writing the debug file use a buffered writer, which makes it much, much faster.

@louis-e
Copy link
Owner

louis-e commented May 18, 2025

retrigger-benchmark

@github-actions
Copy link

github-actions bot commented May 18, 2025

⏱️ Benchmark run finished in 2m 3s
🧠 Peak memory usage: 1963 MB

📈 Compared against baseline: 124s
🧮 Delta: -1s
🔢 Commit: a2cd962

🟢 Generation time is unchanged.

You can retrigger the benchmark by commenting retrigger-benchmark.

@louis-e
Copy link
Owner

louis-e commented May 23, 2025

retrigger-benchmark

@louis-e
Copy link
Owner

louis-e commented May 23, 2025

LGTM, thanks a lot! :)

@louis-e louis-e merged commit db12379 into louis-e:main May 23, 2025
3 of 4 checks passed
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.

2 participants