Repository activity
40458 results across all weeks
perf(source): avoid memo branches for ordinary files
Avoid creating Memo branches for ordinary files while scanning source directories; keep them only for directories and symlinks. Test coverage is in #15719.
Antonio Nuno Monteiro (@anmonteiro)perf(stdune): avoid allocations in nonempty-list comparison
Nonempty_list.compare destructured its arguments and then rebuilt both list
Rudi Grinberg (@rgrinberg)perf(stdune): cache signal number lookup
Signal.of_int rebuilt an Int.Map from the platform signal list on every
Rudi Grinberg (@rgrinberg)perf(stdune): inline string ordering conversion
Every Stdune.String.compare currently performs the runtime string comparison and then calls Ordering.of_int out of line.
Rudi Grinberg (@rgrinberg)perf(stdune): join external paths without a temporary list
Path_external.relative constructs a two-element list solely to pass two strings
Rudi Grinberg (@rgrinberg)perf(stdune): render environment bindings in one allocation
Env.to_unix used Printf.sprintf for every KEY=value binding rendered before a process spawn. This allocated a formatting buffer, intermediate strings, and the final binding.
Rudi Grinberg (@rgrinberg)perf(stdune): reuse appendable list traversal frames
Appendable_list traversals currently represent each remaining Concat child by allocating a new Concat node and stack cell. Wide concatenations therefore create substantial temporary allocation while computing their list, length, or iteration.
Rudi Grinberg (@rgrinberg)perf(stdune): reuse rendered environment bindings
Env.to_unix currently rebuilds every KEY=value string when each derived environment is first rendered, even though the persistent map shares most unchanged bindings.
Rudi Grinberg (@rgrinberg)perf(stdune): skip canonical path bounds checks
Canonical-path detection starts scanning at String.length s - 1 and only decrements the index after checking that it remains non-negative. The string accesses nevertheless perform redundant bounds checks on every scanned character.
Rudi Grinberg (@rgrinberg)perf(stdune): test local path roots with equality
Local paths represent their root with ".", but Path.Local.is_root currently performs a three-way string comparison and then converts the result to equality.
Rudi Grinberg (@rgrinberg)perf(stdune): validate filenames by length
Filename validation currently calls general string equality for both . and .., even though their lengths make those cases trivial to distinguish.
Rudi Grinberg (@rgrinberg)perf(targets): digest produced targets without lists
Feed produced-target digests directly from compact map values instead of allocating one list per directory and flattening those lists before hashing. Replace the list-producing map operation with direct value iteration, and bump the rule digest scheme with its affected fixtures.
Rudi Grinberg (@rgrinberg)perf(trace): sort allocation rankings once
Allocation-profile rankings currently insert every candidate into a bounded immutable list and immediately truncate it. With top=100, rebuilding those lists dominates snapshot allocation.
Rudi Grinberg (@rgrinberg)perf: increase Dune's default minor heap
Dune's no-op self-builds allocate enough short-lived data to collect the
Rudi Grinberg (@rgrinberg)perf: reduce major GC frequency
Major collections account for a substantial fraction of Dune's warmed no-op
Rudi Grinberg (@rgrinberg)perf: reduce null-build instruction overhead
Remove unnecessary bounds checks from explicitly bounded string, byte, and array loops.
Rudi Grinberg (@rgrinberg)perf: use String_builder for module alias generation
I ran some microbenchmarks on this locally, results:
Antonio Nuno Monteiro (@anmonteiro)pkg: retry transient Git fetch failures
dune pkg lock failed in this CI job while fetching the package repository:
Ali Caglayan (@Alizter)refactor(engine): abstract cached file stats
Hide workspace-cache file stats behind constructor and accessor functions so
Rudi Grinberg (@rgrinberg)refactor(engine): cache anonymous actions without target files
Anonymous actions previously wrote stamp files and captured stdout under _build/.actions solely to participate in caching. This change makes anonymous rules targetless, captures stdout through a pipe, and stores results in a digest-keyed workspace cache.
Rudi Grinberg (@rgrinberg)