Commit 9f09a9a
authored
store/bucket: snappy-encoded postings reading improvements (#6245)
* store: pool input to snappy.Decode
Pool input to snappy.Decode to avoid allocations.
Signed-off-by: Giedrius Statkevičius <[email protected]>
* store: use s2 for decoding snappy
It's faster hence use it.
Signed-off-by: Giedrius Statkevičius <[email protected]>
* store: small code style adjustment
Signed-off-by: Giedrius Statkevičius <[email protected]>
* store: call closefns before returning err
Signed-off-by: Giedrius Statkevičius <[email protected]>
* store/postings_codec: return both if possible
Signed-off-by: Giedrius Statkevičius <[email protected]>
* store/bucket: always call close fns
Signed-off-by: Giedrius Statkevičius <[email protected]>
---------
Signed-off-by: Giedrius Statkevičius <[email protected]>1 parent 5d5d39a commit 9f09a9a
File tree
3 files changed
+62
-17
lines changed- pkg/store
3 files changed
+62
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2162 | 2162 | | |
2163 | 2163 | | |
2164 | 2164 | | |
2165 | | - | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
2166 | 2171 | | |
2167 | 2172 | | |
2168 | 2173 | | |
| |||
2302 | 2307 | | |
2303 | 2308 | | |
2304 | 2309 | | |
2305 | | - | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
2306 | 2313 | | |
2307 | 2314 | | |
2308 | 2315 | | |
| |||
2314 | 2321 | | |
2315 | 2322 | | |
2316 | 2323 | | |
2317 | | - | |
| 2324 | + | |
2318 | 2325 | | |
2319 | 2326 | | |
2320 | 2327 | | |
| |||
2335 | 2342 | | |
2336 | 2343 | | |
2337 | 2344 | | |
2338 | | - | |
| 2345 | + | |
2339 | 2346 | | |
2340 | 2347 | | |
2341 | 2348 | | |
2342 | 2349 | | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
2343 | 2353 | | |
2344 | 2354 | | |
2345 | 2355 | | |
2346 | 2356 | | |
2347 | 2357 | | |
2348 | 2358 | | |
2349 | | - | |
| 2359 | + | |
2350 | 2360 | | |
2351 | 2361 | | |
2352 | 2362 | | |
| |||
2362 | 2372 | | |
2363 | 2373 | | |
2364 | 2374 | | |
2365 | | - | |
| 2375 | + | |
2366 | 2376 | | |
2367 | 2377 | | |
2368 | 2378 | | |
| |||
2384 | 2394 | | |
2385 | 2395 | | |
2386 | 2396 | | |
2387 | | - | |
| 2397 | + | |
2388 | 2398 | | |
2389 | 2399 | | |
2390 | 2400 | | |
| |||
2462 | 2472 | | |
2463 | 2473 | | |
2464 | 2474 | | |
2465 | | - | |
| 2475 | + | |
2466 | 2476 | | |
2467 | 2477 | | |
2468 | 2478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
86 | 101 | | |
87 | 102 | | |
88 | 103 | | |
89 | 104 | | |
90 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
91 | 115 | | |
92 | 116 | | |
93 | 117 | | |
94 | 118 | | |
95 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
96 | 124 | | |
97 | 125 | | |
98 | | - | |
99 | | - | |
| 126 | + | |
| 127 | + | |
100 | 128 | | |
101 | 129 | | |
102 | 130 | | |
103 | 131 | | |
104 | | - | |
105 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
106 | 141 | | |
107 | 142 | | |
108 | 143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
0 commit comments