Commit c790cfb
authored
Support reading SparseArray with non zero offset (#7150)
Motivated by #7094 I tried simplifying offset handling in Patches.
Unfortunately because of how chunk_offsets and indices interact with
each other
you need to store two offsets in order to support zero-copy slicing.
Since we want to support zero copy slicing there's nothing fundamentally
better
we can do here than supporting non zero offsets.
Signed-off-by: Robert Kruszewski <github@robertk.io>
Signed-off-by: Robert Kruszewski <github@robertk.io>1 parent 6cef60b commit c790cfb
1 file changed
Lines changed: 8 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | 203 | | |
209 | 204 | | |
210 | 205 | | |
| |||
213 | 208 | | |
214 | 209 | | |
215 | 210 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
220 | 219 | | |
221 | 220 | | |
222 | 221 | | |
| |||
0 commit comments