Structs§
- Shareable
Map ShareableMapprovides a thread-safe memory-mapped file access
Constants§
- DIRECT_
READ_ THRESHOLD - Maximum file size for direct reading (10MB)
- MAX_
MMAP_ SIZE - Maximum file size for single memory mapping (1GB)
- MAX_
SEGMENTED_ MMAP_ SIZE - Maximum file size for segmented memory mapping (4GB)
- SEGMENT_
SIZE - Segment size for large file memory mapping (256MB)
Functions§
- process_
text_ file_ parallel - Read a text file in a parallel, line-by-line fashion
- read_
file_ optimized - Read file contents optimally based on file size
- read_
file_ segment - Read a specific segment of a file
- read_
file_ segment_ to_ string - Read a text file segment as a string
- read_
file_ to_ string - Read a text file as a string using the optimal reading strategy