diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-02-01 23:57:43 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-02-01 23:57:43 +0100 |
commit | 1775b85a40373220fc5bee2360d953b88d26c46b (patch) | |
tree | 8619ece6c36fddf60dbfb247684410b6560bbe70 | |
parent | 3fda5b1034ebff7eb00cb43f665cc4e1bfd263e9 (diff) |
sfeed_tail: tune memory consumption down a bit, tested with a file with 10,000,000 lines (50MB)
-rw-r--r-- | sfeed_tail.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; }; |