Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/georgiifirsov/fastreader
C++ library for reading files. It is almost 5 times faster than standard C++ std::ifstream. It is written with WinAPI on C++.
https://github.com/georgiifirsov/fastreader
cplusplus cpp files winapi windows
Last synced: 10 days ago
JSON representation
C++ library for reading files. It is almost 5 times faster than standard C++ std::ifstream. It is written with WinAPI on C++.
- Host: GitHub
- URL: https://github.com/georgiifirsov/fastreader
- Owner: GeorgiiFirsov
- License: gpl-3.0
- Created: 2019-11-08T20:58:57.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-13T21:37:01.000Z (about 5 years ago)
- Last Synced: 2024-08-10T04:23:14.058Z (3 months ago)
- Topics: cplusplus, cpp, files, winapi, windows
- Language: C++
- Homepage:
- Size: 45.9 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastReader
[![Version][]]() [![Tests][]]() [![License][]]()
[Version]: https://img.shields.io/badge/Version-v1.0-blue
[Tests]: https://img.shields.io/badge/Tests-passed-brightgreen
[License]: https://img.shields.io/badge/License-GNU%20GPL%20v.3-blue
[code guidelines]: https://docs.microsoft.com/en-gb/windows/win32/stg/coding-style-conventionsFastReader is a C++ library for Windows that provides fast file reading.
### Usage
```cpp
//
// 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.CFileHandlerCFileHandler: 56700 ns.
[ OK ] Timing.CFileHandler (1 ms)
[ RUN ] Timing.fstreamstd::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.