ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Ethereal-dev: [Ethereal-dev] Performance of "proto_tree_add_text" ?

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

From: "Anders Broman (AL/EAB)" <anders.broman@xxxxxxxxxxxx>
Date: Tue, 24 Aug 2004 10:18:34 +0200
Hi,
I'm currently trying to implement the Universal Decompressor Virtual Machine (UDVM) needed to decompress
SigComp messages, during the decompression process I'm printing out ( proto_tree_add_text ) the result of each instruction (option).
 Now I have noticed that it takes Ethereal about 5 s to decompress one single message which is about 10700 proto_tree_add_text.
  But a capture of 55000 other packages is realy quick to display is there some difference in performance in using proto_tree_add_text 
compared with other functions ?

 I have to use proto_tree_add_text as I'm executing the instructions from a buffer rather than from a tvb as I have to write to the buffer as well.

Best regards
Anders