Repository activity
40458 results across all weeks
perf(digest): enlarge the manual digest buffer
Rudi Grinberg (@rgrinberg)perf(digest): reduce reusable hasher overhead
Read manual scratch cursors once and pass singleton and pooled digest inputs directly instead of allocating callback adapters. Preserve pending-input flushing, singleton nesting checks, mutex-protected pooling, and reset/release behavior on exceptions.
Rudi Grinberg (@rgrinberg)perf(digest): skip redundant buffered blit checks
The buffered manual digest path checks the source length and ensures sufficient destination capacity before copying a short string into its 4KB scratch buffer. Bytes.blit_string then repeats those bounds checks for every buffered string.
Rudi Grinberg (@rgrinberg)perf(digest): use primitive integer encoding
Dune encodes ordinary OCaml integers as signed little-endian 64-bit values
Rudi Grinberg (@rgrinberg)perf(engine): avoid rememoizing replaced rule actions
Rule actions are already memoized by build-system execution and reflection. Avoid adding a duplicate Memo node whenever Rule.set_action replaces an action.
Rudi Grinberg (@rgrinberg)perf(engine): avoid rememoizing rule actions at construction
Rule actions are already memoized by build-system execution and reflection. Avoid retaining one redundant Action_builder Memo node and its eager facts for every constructed rule.
Rudi Grinberg (@rgrinberg)perf(engine): build loaded target maps directly
Rudi Grinberg (@rgrinberg)perf(engine): compute rule head targets on demand
Rudi Grinberg (@rgrinberg)perf(engine): create target directories after cache misses
Move target-directory creation after the workspace-local rule-cache lookup so cache hits do not issue redundant mkdir calls. The regression test was added separately in #15746.
Rudi Grinberg (@rgrinberg)perf(engine): digest target paths without concatenation
Rudi Grinberg (@rgrinberg)perf(engine): feed dependency fact digests directly
Feed the stable dependency-fact schema through named inline functions
Rudi Grinberg (@rgrinberg)perf(engine): feed workspace root digest fields directly
Match the workspace-root variant in place instead of allocating an
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): reuse identical rule maps during union
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): inline fiber variable lookup
Rudi Grinberg (@rgrinberg)perf(fiber): propagate result errors in the scheduler
Resolve.Memo.bind currently propagates result errors through a generic Memo
Rudi Grinberg (@rgrinberg)perf(fiber): specialize sequential list traversals
Represent fold_left, result fold, and iter traversal frames directly in
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)