| 1 | Source: libmmap-allocator |
| 2 | Maintainer: Debian Med Packaging Team <[email protected]> |
| 3 | Uploaders: Andreas Tille <[email protected]> |
| 4 | Section: libdevel |
| 5 | Build-Depends: debhelper-compat (= 13), |
| 6 | dh-exec |
| 7 | Standards-Version: 4.7.4 |
| 8 | Vcs-Browser: https://salsa.debian.org/med-team/libmmap-allocator |
| 9 | Vcs-Git: https://salsa.debian.org/med-team/libmmap-allocator.git |
| 10 | Homepage: https://github.com/ekg/mmap_allocator/ |
| 11 | |
| 12 | Package: libmmap-allocator-dev |
| 13 | Architecture: any |
| 14 | Depends: ${shlibs:Depends}, |
| 15 | ${misc:Depends} |
| 16 | Description: STL allocator that mmaps files |
| 17 | When reading large files (>100MB) into memory, read() calls are usually |
| 18 | not very space and time efficient, since the whole data is copiied at |
| 19 | least once. Furthermore, when using STL containers (like a vector for |
| 20 | example), data is copiied another time unless the location of the vector |
| 21 | content as parameter to read() will be specified. |
| 22 | . |
| 23 | It would be nice to tell the vector a filename and have the vector mmap |
| 24 | the file directly. This not only avoids the read() copiing (and the STL |
| 25 | vector copiing) but also allows different processes that read the same |
| 26 | file to see the same physical memory. Fortunately STL foresees an |
| 27 | interface to do exactly this. |
| 28 | . |
| 29 | Libmmap-allocator helps to handle big files that contain unstructured |
| 30 | data (like doubles or even text files), mmap_allocator is worth a try. |