• 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
..
CMakeLists.txt Loading commit data...
misctest.cpp Loading commit data...
perftest.cpp Loading commit data...
perftest.h Loading commit data...
platformtest.cpp Loading commit data...
rapidjsontest.cpp Loading commit data...
schematest.cpp Loading commit data...