Repository navigation
perf(build): TLS seeds from the system, and locations index lines once per file - #276
Merged
Merged
Conversation
…its symbols The musl binaries are stripped, so nm on them found nothing and the check could never fail there. The aws-lc-sys rlib keeps its symbols on every target (13,345 on x86_64 musl, no jent_), and a missing archive fails the release instead of passing it.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Consult 7, PR 1. Two startup and scan costs every command paid.
TLS seeds from the operating system, not from CPU jitter.
aws-lc-sysbuilt jitterentropy at-O0and AWS-LC seeded from it on every process start (about 0.15–0.2 s of CPU)..cargo/config.tomlsetsAWS_LC_SYS_NO_JITTER_ENTROPY=1, AWS-LC's documented opt-out, which seeds from the system generator. Every build path runs cargo from the workspace root, so CI,release:package(musl and darwin) and the zig-wrapped musl build all pick it up.release:packagefails if the aws-lc-sys archive of the target it built has ajent_symbol, or if there is no archive to check. The archive keeps its symbols on every target even though the musl binaries are stripped: on x86_64 musl it has 13,345 symbols and nojent_(120 before).Locations index lines once per file.
Location::newcounted newlines from the start of the file for every location, which is quadratic in a lockfile.Linesbuilds the line-start index once per file inScanner::extract, and every extractor shares it (yaml_locationsdrops its own copy).Proof: the corpus extraction and proposal snapshots are byte-identical before and after.
Benchmarks (VM, musl release builds, alternating, user CPU in seconds):
tests/corpus/javascripttests/corpus(1,377 dependencies)