pub struct StreamingLoader {
pub loaded_count: usize,
pub duplicate_count: usize,
pub total_processed: usize,
}Expand description
Ultra-fast streaming loader for massive datasets Optimized for loading 100k-1M+ positions efficiently
Fields§
§loaded_count: usize§duplicate_count: usize§total_processed: usizeImplementations§
Source§impl StreamingLoader
impl StreamingLoader
pub fn new() -> Self
Sourcepub fn stream_load_json<P: AsRef<Path>>(
&mut self,
path: P,
engine: &mut ChessVectorEngine,
batch_size: usize,
) -> Result<(), Box<dyn Error>>
pub fn stream_load_json<P: AsRef<Path>>( &mut self, path: P, engine: &mut ChessVectorEngine, batch_size: usize, ) -> Result<(), Box<dyn Error>>
Stream-load massive JSON files with minimal memory usage Uses streaming JSON parser and batched processing
Sourcepub fn stream_load_binary<P: AsRef<Path>>(
&mut self,
path: P,
engine: &mut ChessVectorEngine,
) -> Result<(), Box<dyn Error>>
pub fn stream_load_binary<P: AsRef<Path>>( &mut self, path: P, engine: &mut ChessVectorEngine, ) -> Result<(), Box<dyn Error>>
Ultra-fast binary format streaming loader For pre-processed binary training data
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamingLoader
impl RefUnwindSafe for StreamingLoader
impl Send for StreamingLoader
impl Sync for StreamingLoader
impl Unpin for StreamingLoader
impl UnwindSafe for StreamingLoader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more