File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ rustdoc-json-types = { path = "../rustdoc-json-types" }
21
21
serde = { version = " 1.0" , features = [" derive" ] }
22
22
serde_json = " 1.0"
23
23
smallvec = " 1.8.1"
24
- stringdex = { version = " 0.0.1-alpha2 " }
24
+ stringdex = { version = " 0.0.1-alpha3 " }
25
25
tempfile = " 3"
26
26
threadpool = " 1.8.1"
27
27
tracing = " 0.1"
Original file line number Diff line number Diff line change @@ -366,7 +366,7 @@ class RoaringBitmap {
366
366
}
367
367
}
368
368
// shrink the keysAndCardinalities list if it's more than twice as big as it needs to be
369
- if ( result . containers . length < ( result . containers . length * 2 ) ) {
369
+ if ( result . keysAndCardinalities . length > ( result . containers . length * 8 ) ) {
370
370
result . keysAndCardinalities =
371
371
result . keysAndCardinalities . slice ( result . containers . length * 4 ) ;
372
372
}
@@ -482,9 +482,9 @@ class RoaringBitmap {
482
482
}
483
483
}
484
484
// shrink the keysAndCardinalities list if it's more than twice as big as it needs to be
485
- if ( result . containers . length < ( result . containers . length * 2 ) ) {
486
- // result.keysAndCardinalities =
487
- // result.keysAndCardinalities.slice(result.containers.length * 4);
485
+ if ( result . keysAndCardinalities . length > ( result . containers . length * 8 ) ) {
486
+ result . keysAndCardinalities =
487
+ result . keysAndCardinalities . slice ( result . containers . length * 4 ) ;
488
488
}
489
489
return result ;
490
490
}
You can’t perform that action at this time.
0 commit comments