Skip to content

Commit e6eb656

Browse files
committed
Bump stringdex version with bugfix
1 parent d832570 commit e6eb656

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/librustdoc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ rustdoc-json-types = { path = "../rustdoc-json-types" }
2121
serde = { version = "1.0", features = ["derive"] }
2222
serde_json = "1.0"
2323
smallvec = "1.8.1"
24-
stringdex = { version = "0.0.1-alpha2" }
24+
stringdex = { version = "0.0.1-alpha3" }
2525
tempfile = "3"
2626
threadpool = "1.8.1"
2727
tracing = "0.1"

src/librustdoc/html/static/js/stringdex.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ class RoaringBitmap {
366366
}
367367
}
368368
// 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)) {
370370
result.keysAndCardinalities =
371371
result.keysAndCardinalities.slice(result.containers.length * 4);
372372
}
@@ -482,9 +482,9 @@ class RoaringBitmap {
482482
}
483483
}
484484
// 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);
488488
}
489489
return result;
490490
}

0 commit comments

Comments
 (0)