Repository activity
40458 results across all weeks
perf(cram): share stanza dependency evaluation
Whole-subtree Cram stanzas can apply to tests in many directories. Memoize their expanders and dependency builders by the defining directory instead of recreating them for every matching test, while preparing them lazily so unmatched stanzas do no extra work. This reduces null-build time for the blackbox test-cases runtest alias by roughly 15–20%.
Rudi Grinberg (@rgrinberg)perf(digest): batch primitive representation fields
Feed adjacent Repr type tags and primitive payloads in one BLAKE3 update. Preserve the exact little-endian tags, payload bytes, ordering, and byte metrics.
Rudi Grinberg (@rgrinberg)perf(digest): batch representation case markers
Feed short selected Repr case-name bytes and their argument marker in
Rudi Grinberg (@rgrinberg)perf(digest): batch representation variant headers
Feed each Repr variant tag and selected case-name length in one BLAKE3
Rudi Grinberg (@rgrinberg)perf(digest): encode sized manual strings in one pass
Rudi Grinberg (@rgrinberg)perf(engine): digest target paths without concatenation
Rudi Grinberg (@rgrinberg)perf(engine): extract target contexts directly
Rule execution only needs the build context from targets.root, but Target_dir.of_target constructs a complete target classification, including the source remainder. Add Target_dir.context to extract only the context and use it when selecting execution parameters, preserving the existing root and invalid-path handling while avoiding intermediate variants.
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): reuse identical rule maps during union
Rudi Grinberg (@rgrinberg)perf(install): inspect build paths without generic wrappers
Install.Context.of_path already receives a Path.Build.t. Classify it directly with Dpath.Target_dir.of_target instead of wrapping it as a generic Path.t and immediately unwrapping the result. This makes impossible source and external cases unrepresentable and avoids intermediate variants while preserving the existing classification.
Rudi Grinberg (@rgrinberg)perf(path): append known filenames without normalization
Use relative_fname when appending values already known to be valid Filename.t path components, avoiding redundant conversion and normalization across directory traversal, cache, package, and rule paths. Append external filename components directly and cover root and trailing-separator behavior.
Rudi Grinberg (@rgrinberg)perf(pkg): parse git ls-tree output by index instead of regex
Stacked on #15989. Only the final commit is new in this draft.
Ali Caglayan (@Alizter)perf(rules): expand literal command arguments directly
Handle A and As leaves in the nested argument traversal without constructing and immediately destructuring a target-free With_targets record. Keep all dependency- and target-bearing forms on the generic expansion path.
Rudi Grinberg (@rgrinberg)perf(rules): recognize identical libraries before comparing arguments
Rudi Grinberg (@rgrinberg)perf(rules): reuse dependency deduplication tables
Add Hashtbl.Make.dedupe_by, which returns a staged stable-deduplication
Rudi Grinberg (@rgrinberg)perf(rules): reuse parsed transitive dependencies
Transitive OCaml dependency lookups cached only the serialized merge-action output. Consumers needing modules could consequently repeat line splitting, module-name validation, map lookup, and construction of a separate memo node.
Rudi Grinberg (@rgrinberg)perf(sexp): fuse common decoder combinators
The S-expression decoder interprets parser combinators through a GADT, so common Bind, Map, Seq, And, and Repeat compositions create intermediate value/state results and repeatedly dispatch through the interpreter.
Rudi Grinberg (@rgrinberg)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)perf(source): avoid validating VCS directory entries
Use Readdir.read_directory while searching ancestor directories for a VCS root, allowing directory entries to remain Filename.t values instead of converting and revalidating each name. Unreadable parent directories continue to produce a warning with the detailed Unix error.
Rudi Grinberg (@rgrinberg)perf(stdune): append validated path components directly
Filename.t now guarantees a valid path component on every platform, so the Path.relative_fname family can append it directly instead of converting and reparsing it. This also removes the unused error_loc optional argument from these functions.
Rudi Grinberg (@rgrinberg)