Commit 6baca76
perf: skip fill value scan and copy for variables without fill values
Only copy and scan for fill values when the variable actually has a
_FillValue attribute. Most variables default to NaN, making the
comparison a no-op that still scans the entire array. Variables
without fill values now return a zero-copy view from reshape.1 parent 1cd54b9 commit 6baca76
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
423 | 423 | | |
424 | 424 | | |
425 | 425 | | |
426 | | - | |
427 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
428 | 430 | | |
429 | 431 | | |
430 | 432 | | |
| |||
0 commit comments