Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom implementation #175

Open
recmo opened this issue Sep 24, 2019 · 0 comments
Open

Custom implementation #175

recmo opened this issue Sep 24, 2019 · 0 comments
Assignees
Labels
refactor Improves the code quality tracker Issues generated from source comments

Comments

@recmo
Copy link
Contributor

recmo commented Sep 24, 2019

On 2019-09-11 @recmo wrote in d715d21 “Update merkle-tree”:

Custom implementation

use tempfile::tempfile;

// TODO: Variant of MmapVec where it switched between Vec and Mmap after
//       a treshold size.

#[derive(Debug)] // TODO: Custom implementation
pub struct MmapVec<T: Clone> {
    mmap:     MmapMut,
    length:   usize,
    capacity: usize,
    _t:       PhantomData<T>,

From utils/mmap-vec/src/mmap_vec.rs:18

@recmo recmo added refactor Improves the code quality tracker Issues generated from source comments labels Sep 24, 2019
@recmo recmo self-assigned this Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Improves the code quality tracker Issues generated from source comments
Projects
None yet
Development

No branches or pull requests

1 participant