Re: [screen-devel] [PATCH for screen-v4] Make closeallfiles() faster

2019-12-28 Thread Amadeusz Sławiński
On Sat, 2 Nov 2019 23:21:40 +0100 Amadeusz Sławiński wrote: > Optimize startup time, making closeallfiles() faster, by doing less > system calls. Instead of calling close for each possible file, use > poll() to check if file exist at all. On linux with open file limit set > to 1048576, it should

[screen-devel] [PATCH for screen-v4] Make closeallfiles() faster

2019-11-02 Thread Amadeusz Sławiński
Optimize startup time, making closeallfiles() faster, by doing less system calls. Instead of calling close for each possible file, use poll() to check if file exist at all. On linux with open file limit set to 1048576, it should do 1024 poll() calls instead of 1048576 close(). Bug: 55618 Signed-o