Repository activity
40458 results across all weeks
perf(engine): derive rule locations on demand
Each Rule.t currently retains both its provenance in Rule.Info.t and a
Rudi Grinberg (@rgrinberg)perf(engine): fuse discarded action builder results
Represent a >>> b directly as an action-builder node instead of constructing a Both node followed by Map snd. Evaluation remains applicative: both builders still run through Memo.fork_and_join, and their dependencies are combined in the same order.
Rudi Grinberg (@rgrinberg)perf(engine): fuse lifted memo action builder chains
Action builders created with of_memo currently retain the lifted Of_memo
Rudi Grinberg (@rgrinberg)perf(engine): fuse mixed action builder chains
Following #15702, collapse the two remaining two-node mixed chains—Map over Bind and Bind over Map—into dedicated GADT constructors. This removes one persistent builder node and evaluator continuation while preserving evaluation and dependency order.
Rudi Grinberg (@rgrinberg)perf(engine): fuse short action builder chains
Action builders can retain chains of adjacent Map or Bind nodes until rule evaluation. Represent runs of up to three operations with one GADT constructor and evaluate them without the intermediate builder nodes and evaluator continuations. The public API and evaluation order are unchanged.
Rudi Grinberg (@rgrinberg)perf(engine): pass process arguments as arrays
Expanded action arguments are currently flattened into a list, retaining one list cell per argument while the subprocess runs and allocating a temporary reversed list during flattening.
Rudi Grinberg (@rgrinberg)perf(engine): track pending targets in hash tables
Tracking targets of running unsandboxed actions previously converted validated
Rudi Grinberg (@rgrinberg)perf(fiber): defunctionalize scheduler computations
Replace Fiber's closure-heavy internal CPS machinery with typed representations for computations, continuations, deferred scheduler work, parallel completion, error handling, and finalization. The public Fiber API is unchanged, and caller-provided callbacks remain opaque function payloads.
Rudi Grinberg (@rgrinberg)perf(fiber): reuse variable maps for unchanged values
About 13% of fiber-variable writes in a self-build store the same physical value already present. Return the existing map in that case, avoiding an array copy while preserving the dynamic-scope context.
Rudi Grinberg (@rgrinberg)perf(lang): avoid rebuilding module path comparators
Module_name.Path.compare currently supplies the labeled element comparator before its positional path arguments. The resulting partial application is rebuilt at comparison sites.
Rudi Grinberg (@rgrinberg)perf(lang): avoid rebuilding unchecked path comparators
Module_name.Unchecked.Path.compare is a partial application of Nonempty_list.compare, so its comparator closure is reconstructed at call sites.
Rudi Grinberg (@rgrinberg)perf(memo): flatten parallel dependencies into arrays
Flattening parallel dependency sections previously converted nested arrays to
Rudi Grinberg (@rgrinberg)perf(memo): flatten sequential dependencies into arrays
Dynamic dependency sections are stored in reverse chronological order. Turning
Rudi Grinberg (@rgrinberg)perf(memo): reduce hot-path allocation overhead
Reduce allocation and container overhead along common Memo execution paths:
Rudi Grinberg (@rgrinberg)perf(memo): skip dependency storage for batch builds
Batch builds currently allocate and retain Memo dependency graphs even though they do not restore cached nodes in a later build run.
Rudi Grinberg (@rgrinberg)perf(ordering): inline integer conversion
Low-level comparators frequently convert an integer comparison result to Ordering.t. Keeping the small conversion out of line adds avoidable calls in these paths.
Rudi Grinberg (@rgrinberg)perf(persistent): avoid buffered string concatenation
Prefix marshaled persistent values with direct string concatenation instead of
Rudi Grinberg (@rgrinberg)perf(rules): collect expanded command arguments directly
Command.expand_list currently maps command arguments to temporary
Rudi Grinberg (@rgrinberg)perf(rules): flatten command argument action builders
Command.expand_list currently builds a right-nested action-builder tree with one Both and one Map node per command argument. Evaluating that tree repeatedly forks Memo computations and combines dependency maps.
Rudi Grinberg (@rgrinberg)perf(rules): flatten nested command argument groups
Nested Command.Args.S groups currently recurse through expand_list, creating
Rudi Grinberg (@rgrinberg)