Skip to content

Data parsing fixes#450

Merged
louis-e merged 3 commits into
louis-e:mainfrom
akx:more-fixes-1
May 23, 2025
Merged

Data parsing fixes#450
louis-e merged 3 commits into
louis-e:mainfrom
akx:more-fixes-1

Conversation

@akx

@akx akx commented May 16, 2025

Copy link
Copy Markdown
Contributor
  • 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

louis-e commented May 18, 2025

Copy link
Copy Markdown
Owner

retrigger-benchmark

@github-actions

github-actions Bot commented May 18, 2025

Copy link
Copy Markdown

⏱️ 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

louis-e commented May 23, 2025

Copy link
Copy Markdown
Owner

retrigger-benchmark

@louis-e

louis-e commented May 23, 2025

Copy link
Copy Markdown
Owner

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