diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-04-03 08:42:45 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-04-03 08:42:45 +0000 |
commit | f3c287d201e991ff13a0ebe7ed68747a34e715b2 (patch) | |
tree | ed934975fa564e2ed1bc4ec60be32d4dde1dd242 /file.h | |
parent | 9e47031a4a88190e430a7b62c2f5c066fc4c0f60 (diff) | |
download | wireshark-f3c287d201e991ff13a0ebe7ed68747a34e715b2.tar.gz wireshark-f3c287d201e991ff13a0ebe7ed68747a34e715b2.tar.bz2 wireshark-f3c287d201e991ff13a0ebe7ed68747a34e715b2.zip |
Use a GMemChunk for allocating and freeing "frame_data" structures; it
reduces the memory required for one big capture file I have by about 10
megabytes, and speeds up the reading in of that file, presumably because
it amortizes the memory-allocator space and CPU time overhead over
a set of several "frame_data" structures.
svn path=/trunk/; revision=1776
Diffstat (limited to 'file.h')
-rw-r--r-- | file.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* file.h * Definitions for file structures and routines * - * $Id: file.h,v 1.64 2000/02/12 08:15:20 guy Exp $ + * $Id: file.h,v 1.65 2000/04/03 08:42:45 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -102,6 +102,7 @@ typedef struct _capture_file { gchar *sfilter; /* Search filter string */ gboolean sbackward; /* TRUE if search is backward, FALSE if forward */ guint8 pd[WTAP_MAX_PACKET_SIZE]; /* Packet data */ + GMemChunk *plist_chunk; /* Memory chunk for frame_data structures */ frame_data *plist; /* Packet list */ frame_data *plist_end; /* Last packet in list */ frame_data *first_displayed; /* First frame displayed */ |