Repository activity
40458 results across all weeks
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): specialize lexbuf location equality
Compare lexing positions and locations through their fields instead of polymorphic comparison. Short-circuit both equality layers when the persistent records are physically identical.
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 environment bindings once
Reject NUL bytes while constructing bindings rather than scanning rendered
Rudi Grinberg (@rgrinberg)perf(stdune): validate exceptional filenames directly
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): fast-path canonical empty combinations
Avoid inspecting both target sets when accumulation combines with the shared empty value. Preserve structural emptiness checks for independently constructed empty sets.
Rudi Grinberg (@rgrinberg)perf(targets): reuse non-empty combined outputs
Return the other immutable target set when one side of Dune_targets.combine is empty. This skips both array-set unions and avoids allocating a result record for empty rule outputs.
Rudi Grinberg (@rgrinberg)perf(targets): validate files and directories directly
Use direct folds for file and directory target validation instead of a generic callback-driven fold. Preserve sorted traversal, first-parent selection, file/directory conflict selection, and terminal errors.
Rudi Grinberg (@rgrinberg)perf: avoid closures in hot comparison functions
Rudi Grinberg (@rgrinberg)perf: batch qualified module dependency lookup
Batch qualified module dependency resolution and cache only disjoint top-level group closures, bounding retained cache memory while preserving empty, self-only, and fail-fast behavior.
Antonio Nuno Monteiro (@anmonteiro)perf: generate lexers as direct OCaml code
Generate all Dune-owned lexers with ocamllex -ml via the new (flags ...) field, avoiding the table interpreter. The bootstrap generator remains unchanged because it does not consume these stanzas.
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)pkg: retry transient Git fetch failures
dune pkg lock failed in this CI job while fetching the package repository:
Ali Caglayan (@Alizter)refactor(cli): remove unused build wrapper
Rudi Grinberg (@rgrinberg)refactor(cli): share debug-backtrace option
Reuse Common.No_build.debug_backtraces for the cache and trace commands instead of maintaining identical Cmdliner argument definitions. This keeps the option spelling, documentation, and behavior in one place.
Rudi Grinberg (@rgrinberg)refactor(cli): share promotion database selection
Rudi Grinberg (@rgrinberg)refactor(config): reuse toggle representation
Use the canonical Toggle.repr when representing the package-management toggle in Dune configuration. This removes a duplicate Repr.variant definition and keeps the configuration representation aligned with Toggle.
Rudi Grinberg (@rgrinberg)refactor(configurator): share C probe setup
Rudi Grinberg (@rgrinberg)