Commit 8fdbf45
committed
perf: optimize defected DP memory with bit-packing and deferred reconstruction
- Replace separate Fd_type and Fd_param 4D arrays with a single uint16 Fd_packed array.
- Use bit-packing to store both decision type (3 bits) and cut parameter (13 bits).
- Defer reconstruction of cut sequences to the solve phase to reduce allocation overhead.1 parent 3d46891 commit 8fdbf45
1 file changed
Lines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | 9 | | |
12 | 10 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 11 | | |
20 | 12 | | |
21 | 13 | | |
| |||
175 | 167 | | |
176 | 168 | | |
177 | 169 | | |
178 | | - | |
| 170 | + | |
| 171 | + | |
179 | 172 | | |
180 | 173 | | |
181 | | - | |
| 174 | + | |
| 175 | + | |
182 | 176 | | |
183 | 177 | | |
184 | 178 | | |
| |||
0 commit comments