On Thu, 15 Sep 2022 09:25:53 +0200 Antoine Pitrou <anto...@python.org> wrote: > > Why would the run ends and the values have the same offset? > Also, how do you interpret the run ends if you have a physical offset > into the values array? > > > Say you have the logical values: [5, 5, 5, 6, 6, 7, 7, 7] > > Run ends: [3, 5, 8] > Values: [5, 6, 7] > > Say you want to slice the RLE array from Logical Offset 4 (which doesn't > fall on a run boundary). How do you represent that with Physical Offsets > into Run ends and Values? > > As soon as you set a Physical Offset on the Values, the Run ends don't > match anymore.
Hmm, part of my message does not make sense, sorry. That said, the question about representing a Logical Offset into the RLE array purely as Physical Offsets into Run ends and Values still holds :-) Regards Antoine.