Commit 4a9d018
committed
perf: avoid per-value Int8Array allocation and filter().length in parquet decode
- int8 decode: replace `new Int8Array(buf, off, 1)[0]` with `view.getInt8(i)`
- DATA_PAGE_V2 null count: replace `defLevels.filter(d => d > 0).length`
(allocates filtered array) with counting loop1 parent 80df545 commit 4a9d018
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
505 | | - | |
506 | | - | |
507 | | - | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
508 | 510 | | |
509 | 511 | | |
510 | 512 | | |
| |||
0 commit comments