BufferedFileReader 1.0.0
Please use FileIO which contains BufferedFileReader!
dotnet add package BufferedFileReader --version 1.0.0
NuGet\Install-Package BufferedFileReader -Version 1.0.0
<PackageReference Include="BufferedFileReader" Version="1.0.0" />
<PackageVersion Include="BufferedFileReader" Version="1.0.0" />
<PackageReference Include="BufferedFileReader" />
paket add BufferedFileReader --version 1.0.0
#r "nuget: BufferedFileReader, 1.0.0"
#addin nuget:?package=BufferedFileReader&version=1.0.0
#tool nuget:?package=BufferedFileReader&version=1.0.0
Intro
Buffered file reader for text (ASCII) and binary files, specifically useful for parallel file parsing and/or for large files.
Why buffering?
'Buffered' essentially means that the file will be loaded into RAM by parts.
- Sometimes a large file can be processed in parallel threads. This library will help with this. How parallel threads, each calling BufferedFileReader, can be started on a same file is shown in the example.
- In a single thread case, a large file cannot be loaded into RAM in one go for processing (e.g. string search has to be performed). Reading line-by-line is not an option as it (a) doesn't allow SIMD operations on several lines, (b) keeps the file open for a long time.
API overview
The library has two classes for buffered reading of text files:
BufferedLineReader
BufferedLineIterator
Two classes for buffered binary reading:
BufferedByteReader
BufferedDataIterator
An iterator is based on a corresponding reader.
MIT license | Copyright © 2023 ENGITEX
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- SampleDependency (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|
Initial release.