ritchie46 / lsh-rs

Locality Sensitive Hashing in Rust with Python bindings
MIT License
109 stars 20 forks source link

Set sqlite pragma mmap as builder patter option for LSH struct #4

Open ritchie46 opened 4 years ago

ritchie46 commented 4 years ago

Mmapping the fs can make the Sqlite backend faster.

https://www.sqlite.org/mmap.html

This could be a configuration for LSH<H, N, Sqlite<_>, K> that could be set as builder pattern.

let lsh = LshSql::new(..)
 .use_mmap()