diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-04-03 08:57:17 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-04-03 08:57:17 +0000 |
commit | 9653203d2497a307cf6d722c44e4465ea340e3d0 (patch) | |
tree | 51a19197eab1dced05d27d81cc92a2d87f7dc960 /file.c | |
parent | f3c287d201e991ff13a0ebe7ed68747a34e715b2 (diff) | |
download | wireshark-9653203d2497a307cf6d722c44e4465ea340e3d0.tar.gz wireshark-9653203d2497a307cf6d722c44e4465ea340e3d0.tar.bz2 wireshark-9653203d2497a307cf6d722c44e4465ea340e3d0.zip |
Note that it didn't seem to save a significant amount of time or space
to use a G_ALLOC_ONLY memory chunk rather than a G_ALLOC_AND_FREE memory
chunk.
svn path=/trunk/; revision=1777
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* file.c * File I/O routines * - * $Id: file.c,v 1.175 2000/04/03 08:42:44 guy Exp $ + * $Id: file.c,v 1.176 2000/04/03 08:57:17 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -699,7 +699,11 @@ wtap_dispatch_cb(u_char *user, const struct wtap_pkthdr *phdr, int offset, /* XXX - if we didn't have read filters, or if we could avoid allocating the "frame_data" structure until we knew whether the frame passed the read filter, we could use a G_ALLOC_ONLY - memory chunk, probably saving time and space. */ + memory chunk... + + ...but, at least in one test I did, where I just made the chunk + a G_ALLOC_ONLY chunk and read in a huge capture file, it didn't + seem to save a noticeable amount of time or space. */ g_mem_chunk_free(cf->plist_chunk, fdata); } } |