event_hook

URL
http://rubyforge.org/projects/seattlerb
Author(s)
Ryan Davis
Summary
Wraps rb_add_event_hook so you can write fast ruby event hook processors w/o the speed penalty that comes with set_trace_func (sooo sloooow!). Calls back into ruby so you don't have to write C. % ruby demo.rb # of iterations = 1000000

Add your comment ↓

Comments

event_hook is Failing
for roger (Mac OSX, over 2 years ago)

Note that set_trace_func (the ruby equivalent of this) is somewhat faster in 1.9, so you might be able to get away with using that, for now, instead of this, until it becomes compatible

event_hook (1.0.1) is Failing
for roger (GNU/Linux, over 2 years ago)

fails on compilation...

/home/rdp/.ruby_inline/Inline_EventHook_58b9.c:4:18: error: node.h: No such file or directory

Add your comment




Yes No