[Debian-med-packaging] Bug#962315: ITP: libmmap-allocator -- STL allocator that mmaps files
Andreas Tille
tille at debian.org
Sat Jun 6 06:03:49 BST 2020
Package: wnpp
Severity: wishlist
Subject: ITP: libmmap-allocator -- STL allocator that mmaps files
Package: wnpp
Owner: Andreas Tille <tille at debian.org>
Severity: wishlist
* Package name : libmmap-allocator
Version : 0.4.0
Upstream Author : Johannes Thoma <johannes.thoma at gmx.at>
* URL : https://github.com/ekg/mmap_allocator
* License : LGPL
Programming Lang: C
Description : STL allocator that mmaps files
When reading large files (>100MB) into memory, read() calls are usually
not very space and time efficient, since the whole data is copiied at
least once. Furthermore, when using STL containers (like a vector for
example), data is copiied another time unless the location of the vector
content as parameter to read() will be specified.
.
It would be nice to tell the vector a filename and have the vector mmap
the file directly. This not only avoids the read() copiing (and the STL
vector copiing) but also allows different processes that read the same
file to see the same physical memory. Fortunately STL foresees an
interface to do exactly this.
.
Libmmap-allocator helps to handle big files that contain unstructured
data (like doubles or even text files), mmap_allocator is worth a try.
Remark: This package is maintained by Debian Med Packaging Team at
https://salsa.debian.org/med-team/libmmap-allocator
More information about the Debian-med-packaging
mailing list