Llamarada

Tomar de la élite lo que pertenece a todos

Adhearsion Events Processing

| Comments

Sometimes our event processing code can be bit slow and may block adhearsion, wwalker suggests doing something like this

one adhearsion event per thread
1
 Thread.new (event.dup) { |e|  do_stuff_with e }

i think what launching a new thread for each event that needs processing can be wasteful and even dangerous on MRI, maybe not so in JRuby, will try it and post my results

Comments