http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=52634
User: eapache
Date: 2013/10/15 11:16 PM
Log:
As suggested separately by both Jakub and Anders: only read the
WIRESHARK_DEBUG_WMEM_OVERRIDE environment variable once in wmem_init, not every
time wmem_allocator_new is called. We currently create a new pinfo pool for
every packet we dissect, so this is a small performance win, especially when
getenv is slow (which may happen if a large number of environment variables are
set, such as when fuzz-testing).
Directory: /trunk/epan/wmem/
Changes Path Action
+35 -19 wmem_core.c Modified
+4 -36 wmem_test.c Modified