in reply to Performance and CPU load: sysread, IO::Select and/or Storable::thaw
You might check that easily by putting a "print ++$x;" statement near the can_read line and see if there is a 5 second wait inbetween the numbers. Then turn on blocking reads and see if anything changes
UPDATE: Read the select() man page (http://linux.die.net/man/2/select), it says there that select returns when you can read a filehandle without blocking
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Performance and CPU load: sysread, IO::Select and/or Storable::thaw
by DBX (Pilgrim) on Jun 28, 2010 at 22:48 UTC | |
by jethro (Monsignor) on Jun 29, 2010 at 18:21 UTC | |
by DBX (Pilgrim) on Jun 29, 2010 at 19:42 UTC | |
by jethro (Monsignor) on Jun 30, 2010 at 09:47 UTC | |
by DBX (Pilgrim) on Jun 30, 2010 at 13:49 UTC |