Feeling more confident with property-testing

from blog Reasonable Performance, | ↗ original
For one of my projects at work, I thought I could reduce memory usage by storing vectors of sorted integers as vectors of ranges. For example, the vector [1,3,4,5,10,14,15,16,17,18] would be represented by [1, 3..5, 10, 14..18]. (Spoiler: the memory usage was higher because there weren’t enough runs of consecutive numbers to offset the cost of...