Skip to content

Commit

Permalink
Sort by cached key when generating wavelet matrix. Release 0.0.12.
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradHoeffner committed Jan 23, 2023
1 parent 42d562c commit 7d61e35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "hdt"
version = "0.0.11"
version = "0.0.12"
repository = "https://github.com/konradhoeffner/hdt"
authors = ["Tim Baccaert <tbaccaer@vub.be>", "Konrad Höffner"]
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ If you need any of the those features, consider using a SPARQL endpoint instead.

```toml
[dependencies]
hdt = "0.0.11"
hdt = "0.0.12"
```

```rust
Expand Down Expand Up @@ -61,5 +61,5 @@ If you don't want to pull in the Sophia dependency, you can exclude the adapter:

```toml
[dependencies]
hdt = { version = "0.0.11", default-features = false }
hdt = { version = "0.0.12", default-features = false }
```
2 changes: 1 addition & 1 deletion src/triples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ impl TriplesBitmap {
for mut indices in indicess {
let mut first = true;
// sort by predicate
indices.sort_unstable_by_key(|a| get_p(*a));
indices.sort_by_cached_key(|a| get_p(*a));
for index in indices {
bitmap_index_dict.push(first);
first = false;
Expand Down

0 comments on commit 7d61e35

Please sign in to comment.