Commit 34565b0
authored
chore: optimize ExprBloomFilter to use references instead of clones (#18157)
* refactor(fuse): optimize ExprBloomFilter to use references instead of clones
This change modifies the ExprBloomFilter implementation to accept a reference to BinaryFuse16
instead of taking ownership of the filter. This optimization eliminates unnecessary cloning
when applying runtime bloom filters during data deserialization in data sources.
Key changes:
- Add lifetime parameter to ExprBloomFilter struct
- Change filter field from owned BinaryFuse16 to a reference
- Update constructor to accept and store references
- Remove redundant clone() calls in native and parquet deserializers
* chore: resolve rebase conflicts1 parent 489eb9c commit 34565b0
File tree
3 files changed
+6
-7
lines changed- src/query/storages/fuse/src
- operations/read
- pruning
3 files changed
+6
-7
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
666 | 666 | | |
667 | 667 | | |
668 | 668 | | |
669 | | - | |
670 | | - | |
| 669 | + | |
671 | 670 | | |
672 | 671 | | |
673 | 672 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments