aboutsummaryrefslogtreecommitdiffstats
path: root/net/httpserver.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-06-07 00:39:30 +0200
committerKim Alvefur <zash@zash.se>2023-06-07 00:39:30 +0200
commit33986e97b7d8819b8dc613d1ba878bc6db4f2163 (patch)
treea549c873295c2dc0702cd19baec02adbe78828a4 /net/httpserver.lua
parent3346561d43d53c3d6ca8ef776f0120c44f98d7dd (diff)
downloadprosody-33986e97b7d8819b8dc613d1ba878bc6db4f2163.tar.gz
prosody-33986e97b7d8819b8dc613d1ba878bc6db4f2163.zip
util.datamanager: Pad list writes to avoid crossing block boundaries
By padding items so that they do not cross block boundaries, it becomes eaiser to delete whole blocks with fallocate() without cutting items in half, improving efficiency of such operations. Since list stores are used for message archives, where the most common deletion operation would be of the oldest entires, at the top of the file. With this, all blocks that contain items to be removed could be deleted without needing to read, delete and write out the whole file.
Diffstat (limited to 'net/httpserver.lua')
0 files changed, 0 insertions, 0 deletions