Design decisions

207. splitmix64 and Compressed's lookups state their cost (2026-11-22)

  • Decision. splitmix64 documents O(1), and Compressed<D, T>'s at, try_at, contains, first_ge, first_gt, last_le and last_lt document O(log |D|) instead of O(log n), so a fn's estimated cost can count them with the size of D.
  • Why. A call whose doc states no cost, or a bare n on a struct method (decision 29.51), blocks a fn's estimate. The compressed values are exactly the positions of D. On the 1,332 fns in corpus/problems ports, estimates go from 37 to 38.
  • Reverse. Restore the two doc lines in stdlib/math.cp and stdlib/seq.cp.