全部搜尋項
bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: libmmap-allocator  ]

套件:libmmap-allocator-dev(0.4.0+git20200122.adbfbe1-1)

libmmap-allocator-dev 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 libmmap-allocator

維護小組:

外部的資源:

相似套件:

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.

標籤: 軟體開發: 函式庫, 角色: 開發用函式庫

下載 libmmap-allocator-dev

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
amd64 18。3 kB86。0 kB [檔案列表]
arm64 18。0 kB84。0 kB [檔案列表]
armel 18。1 kB80。0 kB [檔案列表]
armhf 17。8 kB78。0 kB [檔案列表]
hppa (非官方移植版) 18。3 kB79。0 kB [檔案列表]
i386 18。8 kB80。0 kB [檔案列表]
m68k (非官方移植版) 17。9 kB78。0 kB [檔案列表]
mips64el 18。9 kB91。0 kB [檔案列表]
riscv64 27。2 kB175。0 kB [檔案列表]
s390x 17。8 kB84。0 kB [檔案列表]
sh4 (非官方移植版) 18。6 kB78。0 kB [檔案列表]
x32 (非官方移植版) 18。3 kB79。0 kB [檔案列表]