Commit 6ff7e64
committed
RF: use new cached append for multi-seq read
Use the new cached append to replace the coroutines for the read across
multiple array sequences in ``create_arraysequences_from_generator``.
Before this change (using coroutines):
```
Old: Loaded 5,000 streamlines in 2.85
New: Loaded 5,000 streamlines in 3.6
Speedup of 0.79
Old: Loaded 5,000 streamlines with scalars in 5.16
New: Loaded 5,000 streamlines with scalars in 7.13
Speedup of 0.723703
```
After this change (using cached append):
```
Old: Loaded 5,000 streamlines in 3.21
New: Loaded 5,000 streamlines in 3.9
Speedup of 0.82
Old: Loaded 5,000 streamlines with scalars in 5.21
New: Loaded 5,000 streamlines with scalars in 7.16
Speedup of 0.727654
```
This seems to be well within run-to-run measurement error.1 parent e3b4db5 commit 6ff7e64
1 file changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | 447 | | |
453 | | - | |
| 448 | + | |
454 | 449 | | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
| 450 | + | |
459 | 451 | | |
| 452 | + | |
| 453 | + | |
460 | 454 | | |
0 commit comments