search for: event_type_class_map

Displaying 1 result from an estimated 1 matches for "event_type_class_map".

2008 May 14
0
[ wxruby-Patches-20130 ] Event handling performance issues
...at I meant. The patch modifies mainly the behavior of wxRuby_WrapWxEventInRuby(). One of the great bottlenecks that I could find was the C++ code calling Wx::EvtHandler.event_class_for_type() on the ruby side every time a new event is generated. I modified it to directly access the Wx::EvtHandler::EVENT_TYPE_CLASS_MAP hash (and saving it in a global variable after the first lookup), leading to a great performance improvement. Another minor change was in wxRbCallback::EventThunker, just to avoid repeated calls to rb_intern. After these changes my benchmark script reported an average of 55264 events/second! About...