Comment Comment by halayli This is a very inefficient way to handle events.https://github.com/logcabin/logcabin/blob/master/Event/Loop....an event can be read/write, and each fd:event_type should be able to map to a different Event::file.In its current form, if you receive 2000 events, you'll need to unnecessarily context switch 2000 times. parent halayli 11 years ago
https://github.com/logcabin/logcabin/blob/master/Event/Loop....
an event can be read/write, and each fd:event_type should be able to map to a different Event::file.
In its current form, if you receive 2000 events, you'll need to unnecessarily context switch 2000 times.