Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/epan proto.c proto.h

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ronnie Sahlberg <sahlberg@xxxxxxxxxxxxxxxxx>
Date: Fri, 21 Nov 2003 08:58:49 -0600 (CST)
sahlberg    2003/11/21 08:58:49 CST

  Modified files:
    epan                 proto.c proto.h 
  Log:
  Performance fix
  
  In the GPROF logs proto_registrar_get_nth() used to take anything between 2.5 and 5.5% of the time.
  
  Replace the GLIB array with a handroleld one for one of the private structures.
  
  the function should now be virtually zero cost
  and thus ethereal should be 2.5-5.5% faster on those traces.
  
  anyone that wants to, please rerun GPROF with this fix and see what has changed.
  
  Revision  Changes    Path
  1.105     +33 -14    ethereal/epan/proto.c
  1.44      +2 -2      ethereal/epan/proto.h