Remove serde-big-array for M = 6

This commit is contained in:
Dirkjan Ochtman 2021-01-19 11:08:49 +01:00
parent cffb0f8992
commit 0d0266a296
2 changed files with 0 additions and 7 deletions

View File

@ -16,4 +16,3 @@ ordered-float = "2.0"
rand = { version = "0.8", features = ["small_rng"] }
rayon = "1.5"
serde = { version = "1.0.118", features = ["derive"], optional = true }
serde-big-array = { version = "0.3.1", optional = true }

View File

@ -12,8 +12,6 @@ use rand::{Rng, SeedableRng};
use rayon::iter::{IntoParallelRefMutIterator, ParallelIterator};
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
#[cfg(feature = "serde")]
use serde_big_array::big_array;
/// Parameters for building the `Hnsw`
pub struct Builder {
@ -704,13 +702,9 @@ struct ZeroNode {
/// The nearest neighbors on this layer
///
/// This is always kept in sorted order (near to far).
#[cfg_attr(feature = "serde", serde(with = "BigArray"))]
nearest: [PointId; M * 2],
}
#[cfg(feature = "serde-big-array")]
big_array! { BigArray; }
impl Default for ZeroNode {
fn default() -> ZeroNode {
ZeroNode {