• ylavic's avatar
    Optimize FileReadStream and BasicIStreamWrapper. · 2498c577
    ylavic authored
    On (my) linux, perftest reports:
    - ~40% gain for FileReadStream (Take() loop),
    - ~10% gain for ReaderParse_DummyHandler_FileReadStream.
    
    With the same logic applied to BasicIStreamWrapper, which thus can now
    also be created with a user buffer, performances align with those of
    FileReadStream (same buffer size).
    
    The "unbuffered" versions (added for FileReadStream) work solely with
    the internal peekBuffer (Ch[4]) and are measured in perftest.  When
    performances don't matter much, they can avoid the use of large
    stack/heap buffers.
    2498c577
Name
Last commit
Last update
..
perftest Loading commit data...
unittest Loading commit data...
CMakeLists.txt Loading commit data...
valgrind.supp Loading commit data...