Remove serde-big-array for M = 6
This commit is contained in:
parent
cffb0f8992
commit
0d0266a296
|
@ -16,4 +16,3 @@ ordered-float = "2.0"
|
||||||
rand = { version = "0.8", features = ["small_rng"] }
|
rand = { version = "0.8", features = ["small_rng"] }
|
||||||
rayon = "1.5"
|
rayon = "1.5"
|
||||||
serde = { version = "1.0.118", features = ["derive"], optional = true }
|
serde = { version = "1.0.118", features = ["derive"], optional = true }
|
||||||
serde-big-array = { version = "0.3.1", optional = true }
|
|
||||||
|
|
|
@ -12,8 +12,6 @@ use rand::{Rng, SeedableRng};
|
||||||
use rayon::iter::{IntoParallelRefMutIterator, ParallelIterator};
|
use rayon::iter::{IntoParallelRefMutIterator, ParallelIterator};
|
||||||
#[cfg(feature = "serde")]
|
#[cfg(feature = "serde")]
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
#[cfg(feature = "serde")]
|
|
||||||
use serde_big_array::big_array;
|
|
||||||
|
|
||||||
/// Parameters for building the `Hnsw`
|
/// Parameters for building the `Hnsw`
|
||||||
pub struct Builder {
|
pub struct Builder {
|
||||||
|
@ -704,13 +702,9 @@ struct ZeroNode {
|
||||||
/// The nearest neighbors on this layer
|
/// The nearest neighbors on this layer
|
||||||
///
|
///
|
||||||
/// This is always kept in sorted order (near to far).
|
/// This is always kept in sorted order (near to far).
|
||||||
#[cfg_attr(feature = "serde", serde(with = "BigArray"))]
|
|
||||||
nearest: [PointId; M * 2],
|
nearest: [PointId; M * 2],
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "serde-big-array")]
|
|
||||||
big_array! { BigArray; }
|
|
||||||
|
|
||||||
impl Default for ZeroNode {
|
impl Default for ZeroNode {
|
||||||
fn default() -> ZeroNode {
|
fn default() -> ZeroNode {
|
||||||
ZeroNode {
|
ZeroNode {
|
||||||
|
|
Loading…
Reference in New Issue