aboutsummaryrefslogtreecommitdiff
path: root/src/common/memarea.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-04-08 17:29:05 +0000
committerNick Mathewson <nickm@torproject.org>2008-04-08 17:29:05 +0000
commit31153d6374317b4bfaba83fafdcde5a0f3f885de (patch)
tree7967910e0d5735b051734b375e7b3f819430bab3 /src/common/memarea.h
parenta627407fcba1d5b1671e5789f420e4b5f8b63f99 (diff)
downloadtor-31153d6374317b4bfaba83fafdcde5a0f3f885de.tar.gz
tor-31153d6374317b4bfaba83fafdcde5a0f3f885de.zip
r19243@catbus: nickm | 2008-04-08 13:28:59 -0400
Use a freelist to hold a few recent memarea chunks. We do a kazillion memarea allocs and frees; that cant be good for us. svn:r14319
Diffstat (limited to 'src/common/memarea.h')
-rw-r--r--src/common/memarea.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/memarea.h b/src/common/memarea.h
index 17ab781a7f..b08a033e4a 100644
--- a/src/common/memarea.h
+++ b/src/common/memarea.h
@@ -19,6 +19,7 @@ char *memarea_strdup(memarea_t *area, const char *s);
char *memarea_strndup(memarea_t *area, const char *s, size_t n);
void memarea_get_stats(memarea_t *area,
size_t *allocated_out, size_t *used_out);
+void memarea_clear_freelist(void);
void memarea_assert_ok(memarea_t *area);
#endif