Commit f152281
authored
Implement smarter sampler (#7585)
## Summary
Tracking issue: #7216
Right now, we have a very naive sampling strategy in the compressor. We
will run the estimation function in the order of the `Scheme`
declaration, regardless of how expensive it is to estimate things.
This changes the sampling algorithm to first do all of the cheap
estimations, and only when all of them fail do we do the more expensive
sampling / callbacks.
Edit: so benchmarks show no real change, but theoretically if someone
comes along and has a really slow compress scheme, this should lessen
the impact of that.
## Testing
Will run benchmarks.
Signed-off-by: Connor Tsui <connor.tsui20@gmail.com>1 parent 7324308 commit f152281
7 files changed
Lines changed: 350 additions & 54 deletions
File tree
- vortex-btrblocks/src/schemes
- vortex-compressor
- src
- builtins/constant
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
737 | 738 | | |
738 | 739 | | |
739 | 740 | | |
740 | | - | |
741 | | - | |
742 | | - | |
| 741 | + | |
| 742 | + | |
743 | 743 | | |
744 | | - | |
745 | | - | |
746 | | - | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
747 | 754 | | |
748 | | - | |
| 755 | + | |
749 | 756 | | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
754 | 764 | | |
755 | 765 | | |
756 | 766 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
329 | 355 | | |
330 | 356 | | |
331 | 357 | | |
| |||
338 | 364 | | |
339 | 365 | | |
340 | 366 | | |
341 | | - | |
| 367 | + | |
342 | 368 | | |
343 | 369 | | |
344 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments