Commit 6ca45f8
committed
Add NamedArrayPartition and Float32 ArrayPartition to precompilation workload
This improves time-to-first-execution (TTFX) by adding commonly-used operations
to the precompilation workload:
1. NamedArrayPartition - constructor, property access, indexing, broadcasting, similar
2. Float32 ArrayPartition - constructor, indexing, broadcasting, similar, recursive_mean, recursivecopy
Performance improvements:
- Float32 ArrayPartition broadcasting: ~0.4s → 0.00008s (~5000x faster)
- Float32 ArrayPartition constructor: ~0.05s → 0.0003s (~180x faster)
- NamedArrayPartition operations now sub-millisecond
Package startup time remains unchanged at ~0.26s. Only 4 low-impact invalidations
were found (all necessary for package functionality).
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 28c9ef1 commit 6ca45f8
1 file changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
71 | 97 | | |
72 | 98 | | |
0 commit comments