accosmin / nano

C++ library [machine learning & numerical optimization] - superseeded by libnano
MIT License
1 stars 0 forks source link

More memory efficient libarchive wrapper #143

Closed accosmin closed 7 years ago

accosmin commented 7 years ago

nano::unarchive reads the content of a file as a whole in a large buffer. This results in large memory usage for STL10.

Solution: write a stream wrapper class over an archive* that calls archive_read_data_block when needed. This should replace ::copy from archive.cpp