http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=42423
User: guy
Date: 2012/05/04 09:56 AM
Log:
file_seek() used to be a wrapper around fseek() or gzseek(), both of
which could use lseek() and were thus expensive due to system call
overhead. To avoid making a system call for every packet on a
sequential read, we maintained a data_offset field in the wtap structure
for sequential reads.
It's now a routine that just returns information from the FILE_T data
structure, so it's cheap. Use it, rather than maintaining the data_offset
field.
Readers for some file formats need to maintain file offset themselves;
have them do so in their private data structures.
Directory: /trunk/wiretap/
Changes Path Action
+1 -7 5views.c Modified
+1 -5 aethra.c Modified
+1 -5 airopeek9.c Modified
+0 -2 ascendtext.c Modified
+5 -4 ber.c Modified
+1 -5 btsnoop.c Modified
+3 -6 catapult_dct2000.c Modified
+1 -6 commview.c Modified
+0 -2 cosine.c Modified
+1 -6 csids.c Modified
+1 -4 daintree-sna.c Modified
(34 files not shown)