diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-04-08 17:29:05 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-04-08 17:29:05 +0000 |
commit | 31153d6374317b4bfaba83fafdcde5a0f3f885de (patch) | |
tree | 7967910e0d5735b051734b375e7b3f819430bab3 /src/common/memarea.h | |
parent | a627407fcba1d5b1671e5789f420e4b5f8b63f99 (diff) | |
download | tor-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.h | 1 |
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 |