Commit d330322
authored
Turbopack: ensure max merge segments is respected accros families (#82223)
### What?
We try to limit the maximum number of merge jobs with the `max_merge_segment_count` option. But as we run `get_merge_segments` for every key family it only limits the merge jobs per family. This results in much more merge jobs then configured.
This change applied the limits across families. Lower number families will be compacted first, which is a new behavior, so maybe we want to reorder the key families to improve the order (see enum KeySpace)1 parent b8eba4f commit d330322
File tree
2 files changed
+16
-3
lines changed- turbopack/crates/turbo-persistence/src
- compaction
2 files changed
+16
-3
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
790 | 803 | | |
791 | 804 | | |
| 805 | + | |
792 | 806 | | |
793 | 807 | | |
794 | | - | |
| 808 | + | |
795 | 809 | | |
796 | 810 | | |
797 | 811 | | |
798 | | - | |
799 | | - | |
800 | 812 | | |
801 | 813 | | |
802 | 814 | | |
| |||
0 commit comments