From 1775b85a40373220fc5bee2360d953b88d26c46b Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 1 Feb 2016 23:57:43 +0100 Subject: sfeed_tail: tune memory consumption down a bit, tested with a file with 10,000,000 lines (50MB) --- sfeed_tail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfeed_tail.c b/sfeed_tail.c index 6d81ac2..603765b 100644 --- a/sfeed_tail.c +++ b/sfeed_tail.c @@ -20,7 +20,7 @@ struct line { }; /* ofcourse: bigger bucket size uses more memory, but has less collisions. */ -#define BUCKET_SIZE 65535 +#define BUCKET_SIZE 16384 struct bucket { struct line cols[BUCKET_SIZE]; }; -- cgit v1.2.3