From 93b73b064c663d6248bebfbbbd82989b5ca10fc5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 21 Nov 2012 00:28:00 +0100 Subject: journal: by default do not decompress dat objects larger than 64K This introduces a new data threshold setting for sd_journal objects which controls the maximum size of objects to decompress. This is relieves the library from having to decompress full data objects even if a client program is only interested in the initial part of them. This speeds up "systemd-coredumpctl" drastically when invoked without parameters. --- src/journal/compress.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/journal/compress.h') diff --git a/src/journal/compress.h b/src/journal/compress.h index b6f1aa0ed7..2b87e73a26 100644 --- a/src/journal/compress.h +++ b/src/journal/compress.h @@ -27,7 +27,7 @@ bool compress_blob(const void *src, uint64_t src_size, void *dst, uint64_t *dst_size); bool uncompress_blob(const void *src, uint64_t src_size, - void **dst, uint64_t *dst_alloc_size, uint64_t* dst_size); + void **dst, uint64_t *dst_alloc_size, uint64_t* dst_size, uint64_t dst_max); bool uncompress_startswith(const void *src, uint64_t src_size, void **buffer, uint64_t *buffer_size, -- cgit v1.2.3-54-g00ecf