Want 4 times faster numpy.full and numpy.full_like?
Performance gains on a 12-core Ryzen 5900:
| Size | Threads | np.full |
parallel_full |
Speedup |
|---|---|---|---|---|
| 0.25 MB | 1 | 0.01 ms | 0.01 ms | 1.10x |
| 1 MB | 1 | 0.02 ms | 0.02 ms | 0.94x |
| 4 MB | 1 | 0.47 ms | 0.47 ms | 0.99x |
| 8 MB | 4 | 0.91 ms | 0.57 ms | 1.60x |