vigna / dsi-bitstream-rs Goto Github PK
View Code? Open in Web Editor NEWA Rust implementation of read/write bit streams supporting several types of instantaneous codes
License: Apache License 2.0
A Rust implementation of read/write bit streams supporting several types of instantaneous codes
License: Apache License 2.0
Hi! Right now CodeStats does not store the number of gaps it has seen. It would be nice if it could store that as metadata so that I would not need to store it externally to compute the percentage of improvement over the naive baseline (storing the hashes themselves). Would it be okay if I added that as a u64
?
dsi-bitstream-rs/src/utils/stats.rs
Lines 32 to 55 in 740abcd
currently we do not pass "cargo clippy" due to the following errors (there are also warnings, but they are not blocking):
error: read amount is not handled
--> src/backends/file_backend.rs:68:9
|
68 | self.file.read(res.as_mut())?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use `Read::read_exact` instead, or handle partial reads
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
= note: `#[deny(clippy::unused_io_amount)]` on by default
error: written amount is not handled
--> src/backends/file_backend.rs:79:9
|
79 | self.file.write(word.to_ne_bytes().as_ref())?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use `Write::write_all` instead, or handle partial writes
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
Hi! I am running CodesStats to identify which Code may be better for my use case (gaps in a sorted hash list).
I noticed that serde is wholly unsupported, and I would like to have the possibility to dump the Codes obtained by the analysis since I need to run several possible parameterizations. Is there any reason for the lack of serde? Otherwise, I can add that with a pull request.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.