Skip to content

Commit

Permalink
move from thc to h3o-zip
Browse files Browse the repository at this point in the history
  • Loading branch information
grim7reaper committed Mar 25, 2024
1 parent d6cad1b commit fb3779f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Possible sections are:
<!-- next-header -->
## [Unreleased] - ReleaseDate

### Changed

- bump deps (replace `thc` by `h3o-zip`)

## [0.1.2] - 2024-03-20

### Added
Expand Down
7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "h3o-ice"
version = "0.1.2"
version = "0.1.3"
authors = ["Sylvain Laperche <[email protected]>"]
edition = "2021"
description = "Frozen{Map,Set} for H3 cells, based on finite state transducers."
Expand Down Expand Up @@ -30,8 +30,11 @@ fst = { version = "0.4", default-features = false }

[dev-dependencies]
criterion = { version = "0.5", default-features = false, features = ["html_reports"] }
thc = { version = "0.1", default-features = false }
h3o-zip = { version = "0.1", default-features = false }

[[bench]]
name = "api"
harness = false

[profile.release]
lto = "thin"
4 changes: 2 additions & 2 deletions benches/api/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ use std::path::PathBuf;

pub fn load_dataset(name: &str) -> Vec<CellIndex> {
let mut path = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
let filepath = format!("dataset/{name}.thc");
let filepath = format!("dataset/{name}.cht");
path.push(filepath);

let bytes = std::fs::read(path).expect("read test data");
thc::decompress(&bytes)
h3o_zip::decompress(&bytes)
.collect::<Result<_, _>>()
.expect("unpack test data")
}
File renamed without changes.
File renamed without changes.

0 comments on commit fb3779f

Please sign in to comment.