Repository activity
40458 results across all weeks
perf(cache): share lazy artifact storage directories by version
Reuse one lazy artifact-storage directory path per supported file-format version in Layout.Versioned.file_storage_dir, instead of allocating and forcing a new directory-path lazy for every artifact-reference lookup.
Rudi Grinberg (@rgrinberg)perf(cache): skip sorting for oversized trim goals
Skip ctime sorting when the trimming goal strictly exceeds the total unused artifact size. Every candidate will be visited, so sorting cannot change which files are selected.
Rudi Grinberg (@rgrinberg)perf(cache): stop traversing candidates once the trim goal is met
Replace the deletion fold with a tail-recursive loop that returns as soon as the byte goal is reached. Previously, the remaining candidate list was still traversed even though the deletion callback did nothing.
Rudi Grinberg (@rgrinberg)perf(cache): stream unused artifacts for size queries
dune cache size folds over unused artifacts instead of materializing the eviction-candidate list. Lazily concatenate supported cache versions, sharing enumeration/stat/filter logic with trimming; only eviction materializes a list for sorting.
Rudi Grinberg (@rgrinberg)perf(merlin): avoid unused compilation dependency facts
Build Merlin configuration prerequisites without collecting dependency facts that compilation prefixes discard.
Antonio Nuno Monteiro (@anmonteiro)perf(merlin): batch library-directory construction
Batch Merlin library-directory collection while retaining parallel memoized reads for local source directories.
Antonio Nuno Monteiro (@anmonteiro)perf(process): avoid loading entire captures before truncation
Keep small captures on the fd-based read path through a new read_file_if_small helper. It uses the existing file-size check, without a preliminary stat or channel allocation.
Rudi Grinberg (@rgrinberg)perf(sandbox): reuse ancestor checks for sibling dependencies
Reuse the previous parent’s coverage result for sibling sandbox inputs. Follow-up to #16806.
Ali Caglayan (@Alizter)perf(sexp): reuse empty field decoder states
Field decoder state retains recognized names only to generate hints for unknown input fields. Once no unparsed fields remain, those names are no longer observable.
Rudi Grinberg (@rgrinberg)prototype: add RPC-backed rule plugins
This prototype lets a project define its own stanza-like forms using a small OCaml program. For example, here's a (plugin.greet ...) form that generates a greeting file.
Rudi Grinberg (@rgrinberg)prototype: link ppx drivers with -no-pie on Linux
Description
Louis (@Khady)refactor(action): remove redundant execution context fields
Remove the unused build context from action inputs and execution contexts, and stop duplicating the target set in the recursive execution context.
Rudi Grinberg (@rgrinberg)refactor(action): use one concrete action representation
Use a single concrete Action.t instead of the parameterized AST and print-only representation. Encode actions directly when printing rules, tracking the working directory for relative paths and preserving symlink-source handling.
Rudi Grinberg (@rgrinberg)refactor(boot): remove unused SIMD C flags
The blake3 impelemntations use assembly and not the C intrinsics implementations that were removed in #11914. The flags encoded here are unused and are therefore useless.
Ali Caglayan (@Alizter)refactor(engine): cancel the loop-owned process context
Store the process context in the active build state instead of its run ID. Cancel that context directly rather than consulting Process.Build.current, and derive trace and RPC run IDs from the stored context.
Rudi Grinberg (@rgrinberg)refactor(engine): classify source and external paths in the rule loader
Match Path.t directly during directory triage instead of routing through the one-use Dpath.analyse_dir wrapper and its duplicate source/external/build type.
Rudi Grinberg (@rgrinberg)refactor(engine): clean unsandboxed targets within the action scope
Follow up on #16743 by moving unsandboxed target cleanup into Sandbox.with_. Collect action errors, delete targets on failure, and propagate the original errors alongside any cleanup errors.
Rudi Grinberg (@rgrinberg)refactor(engine): expose the rules-facing build configuration API
Move the rule-generation constructors and combination logic into Build_config.Gen_rules, removing the wrapper from dune_rules/import.ml. Use Gen_rules.t as the single result type throughout the engine and rules.
Rudi Grinberg (@rgrinberg)refactor(engine): fix promotion policy at the rules boundary
Narrow the source-promotion hook to source and destination paths. Its sole caller always requests writable promoted files and replacement of destination directories, so keep those fixed policies in the rules-side implementation instead of passing them through the engine API.
Rudi Grinberg (@rgrinberg)refactor(engine): keep generated-rule payload combination private
Hide Build_config.Gen_rules.Rules.combine_exn; production callers already use Gen_rules.combine.
Rudi Grinberg (@rgrinberg)