{"push_id":1237665462,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"b7e06d4c113bf68680563c0b26569823d87a016a","before":"daa1be33a80a4e78bd040d3a4d8424e97bbf3f19","commits":[{"sha":"b7e06d4c113bf68680563c0b26569823d87a016a","author":{"name":"Viktor Rosendahl","email":"5d5cbb6428acca34fd49e746db07c53efdeb8891@gmail.com"},"message":"TraceEvent: Get rid of the eventName member\n\nThis is performance optimization which tries to exploits the\nfollowing things:\n\n* The evenName field is only needed by the EventsModel class for\n  displaying event names in the EventsWidget.\n\n* The analyzer code already only uses the type field to distinguish\n  between different types of events.\n\n* It's cheap to create a system for looking up event names from\n  the type field.\n\n* Removing a pointer from TreaceEvent will probably give a small\n  performance boost and also save some memory.\n\nIn order to be able to still display the names, we arrange for the\nStringTree class, used by the parser to construct a lookup table\nthat maps event types to pointers to TString, these are the TStrings\nthat are allocated by the searchAllocString() during parsing.\n\nWe save a pointer to the StringTree that was used for parsing in\na static member of the TraceEvent class. Thus the new getEventName()\nfunction in TraceEvent can lookup the event name from the type.\n\nIn addition, we need to have in the parsers a counter for unknown\nevents, in order to be able to give unique type values for every\nencountered unknown event.\n\nSigned-off-by: Viktor Rosendahl <viktor.rosendahl@gmail.com>","distinct":true,"url":"https://api.github.com/repos/cunctator/traceshark/commits/b7e06d4c113bf68680563c0b26569823d87a016a"}]}
{"actor":{"display_login":"cunctator"}}