Skip to content

perf: reuse environment entries across process spawns - #22

Open
anmonteiro wants to merge 7 commits into
perf/base-current-mainfrom
anmonteiro/perf-process-env
Open

perf: reuse environment entries across process spawns#22
anmonteiro wants to merge 7 commits into
perf/base-current-mainfrom
anmonteiro/perf-process-env

Conversation

@anmonteiro

@anmonteiro anmonteiro commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Reuse cached environment strings when setting Dune's process temp directory, including the absent-variable Unix path and case-insensitive Windows variables.\n\nFor 1,000 variables on current ocaml/main, present-variable serialization falls from 22.07 us / 8.08k minor words to 4.52 us / 2.52k words. The absent-variable path falls from 21.91 us / 8.10k words to 115 ns / about 6 words.\n\nBuilds on the per-binding renderer from ocaml#15688; this avoids reconstructing the binding list per spawn.

@anmonteiro
anmonteiro force-pushed the anmonteiro/perf-process-env branch 3 times, most recently from 96402a0 to aed1c8f Compare August 3, 2026 04:53
@anmonteiro
anmonteiro force-pushed the anmonteiro/perf-process-env branch from aed1c8f to 9e1b253 Compare August 7, 2026 04:38
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.

1 participant