luaposix/luaposix — pull request #85 by zevv (2013-04-13 12:07:19+00:00)
Title: poll only returns active events in revents table, increases performance

The current poll implementation always adds a boolean for each possible event (IN, OUT, HUP, PRI, ERR, NVAL) to the fd's revents table, setting them to true or false. This patch only sets the triggered events to true, and leaves out the others.

Increases performance in my test case with approx 20%.