aboutsummaryrefslogtreecommitdiffstats
path: root/file.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-04-03 08:42:45 +0000
committerGuy Harris <guy@alum.mit.edu>2000-04-03 08:42:45 +0000
commitf3c287d201e991ff13a0ebe7ed68747a34e715b2 (patch)
treeed934975fa564e2ed1bc4ec60be32d4dde1dd242 /file.h
parent9e47031a4a88190e430a7b62c2f5c066fc4c0f60 (diff)
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/file.h b/file.h
index e269f77899..dff9d580cf 100644
--- a/file.h
+++ b/file.h
@@ -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 */