diff options
author | lloyd <[email protected]> | 2008-06-26 16:18:41 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-06-26 16:18:41 +0000 |
commit | 1b4a1cd7b3e74bd3d3c34c6c89721536a6fe3a27 (patch) | |
tree | 87fd44ba4b853eb68824055bbd91b29fca646c5d /src/pk_core.cpp | |
parent | 1e2a389d850edc93be424c92211d288e3bed7be7 (diff) |
The change in rev f6d0cb6f9569d228ed6a11d021c3f57f55220bde was actually
completely wrong, and it is rather disturbing I made that mistake. The
poll() function will gather up to the number of bytes passed as its argument;
it will do this by opening up files and reading up to 1024 bytes from each
one. So we might open between 256 and 256*1024 files, depending on the sizes
of them (ignoring empty files, which count for zero bytes). (Idea: also
include the name of the file in the output? Is that useful?)
Move the read_buf out of the loop to minimize allocator thrashing.
Diffstat (limited to 'src/pk_core.cpp')
0 files changed, 0 insertions, 0 deletions