mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 05:22:58 -05:00
measuring_data_too_large_to_hold_in_a_loop_runs_out_of_the_budget deflated and measured 300 MiB of zeros against the 50,000,000-operation budget, and took about 3.9 s. It now runs with the reader limited to 1 MiB (with_data_limit), zeros that decompress to 4 MiB, and a budget of 524,288 operations for a file whatever its length (with_ops_limit, a test-only seam for MAX_OPS like with_data_limit). It still checks that the data is measured in full more than once and at most five times, and runs in about 0.09 s. read_counting now reads on its thread with the calling thread's data and operation limits, so tests that use it can lower them.