Skip to content

GeorgyFirsov/FastReader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastReader

Version Tests License

FastReader is a C++ library for Windows that provides fast file reading.

Usage

//
// Usage is very simple:
//

CFileHandler file( szFileName );  // szFileName is a LPCWSTR string

// Now just iterate over each line:
for(const auto& line : file )
{
	// ...
}

// You don't need to close file

Test results

[----------] 2 tests from Timing
[ RUN      ] Timing.CFileHandler

CFileHandler: 56700 ns.

[       OK ] Timing.CFileHandler (1 ms)
[ RUN      ] Timing.fstream

std::ifstream: 241000 ns.

[       OK ] Timing.fstream (3 ms)
[----------] 2 tests from Timing (11 ms total)

Contributing

First of all, thanks for taking time for contributing :)

Attention! If you don't follow code guidelines, your pull-request will be declined anyway. Carefully read PEP conventions. It is highly required to make our code cleaner and more understandable.

The only way you can contribute is:

  • fork this repo to your GitHub
  • make some changes and improvements
  • make pull request to this main repo

👉 Note: All the pull-requests will be strictly checked and reviewed before being accepted or declined. All external pull-requests have the same scrutiny for quality, coding standards, performance, globalization, accessibility, and compatibility as those of me.

About

C++ library for reading files. It is almost 5 times faster than standard C++ std::ifstream. It is written with WinAPI on C++.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages