Commit dfa7424
authored
perf(native): raise native edge-building threshold to smallFilesThreshold (#940)
The hardcoded > 3 threshold for native import/call edge building
triggered on 5-file incremental builds, but the napi-rs marshaling
cost (~13ms) exceeded Rust computation savings at that scale.
Raise the threshold to use ctx.config.build.smallFilesThreshold
(default 5) so small incremental builds use the JS edge path,
aligning with the same threshold used for insertNodes and structure.
Closes #936
Impact: 1 functions changed, 5 affected1 parent 633efba commit dfa7424
1 file changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
801 | | - | |
802 | | - | |
| 801 | + | |
| 802 | + | |
803 | 803 | | |
804 | | - | |
| 804 | + | |
| 805 | + | |
805 | 806 | | |
806 | 807 | | |
807 | 808 | | |
| |||
821 | 822 | | |
822 | 823 | | |
823 | 824 | | |
824 | | - | |
825 | | - | |
| 825 | + | |
| 826 | + | |
826 | 827 | | |
827 | | - | |
| 828 | + | |
| 829 | + | |
828 | 830 | | |
829 | 831 | | |
830 | 832 | | |
| |||
0 commit comments