sdsl-lite icon indicating copy to clipboard operation
sdsl-lite copied to clipboard

int vector mapper #2

Open mpetri opened this issue 10 years ago • 3 comments

This pull request adds functionality to the int-vector-mapper (#232) such as [x] typedef for a read_only_mapper [x] support class which allows the creation of output buffer: write_out_buffer [x] support class which supports the creation of temporary files which are deleted by the int-vector-mapper destructor temp_file_buffer [x] tests for the new functionality the only remaining open functionality of the int-vector-buffer which is not yet implemented is the ability to handle ram_files. However, I suggest the following: - Remove the majority of the ram file functionality. - When construct_im is called, set a flag somewhere which then forces the int-vector-mapper to not unmap the file in the destructor. Thus, if enough memory is available it remains in memory. - When the construct_im method is done, there is some call to "clean up" which would unmap everything and delete the leftover files (or nothing will be written to disk in the first place)

mpetri avatar Apr 10 '15 10:04 mpetri

Can one of the admins verify this patch?

sdsllitebot avatar Apr 10 '15 10:04 sdsllitebot

test this please

mpetri avatar Apr 10 '15 10:04 mpetri

test this please

mpetri avatar Apr 10 '15 10:04 mpetri