Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Hugh number of file descriptor checks
- X-seq: zsh-workers 27735
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Hugh number of file descriptor checks
- Date: Sun, 21 Feb 2010 09:11:52 -0800
- In-reply-to: <201002191045.o1JAjlgg014360@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <201002190000.27806.joke@xxxxxxxxx> <20100219022710.GA71015@xxxxxxxxxxxxxxxxxxxx> <201002191045.o1JAjlgg014360@xxxxxxxxxxxxxx>
Sorry to be a bit late responding to this, I was traveling ...
On Feb 19, 10:45am, Peter Stephenson wrote:
}
} How about the following? I also tried to tidy up the rellocation of
} fdtable a bit.
}
} /**/
} mod_export long
} zopenmax(void)
} {
} - static long openmax = 0;
} + long openmax = 0;
}
} if (openmax < 1) {
Did you really mean to remove "static" there? With that removed, the
"if (openmax < 1)" will ALWAYS be true, so there's no point in testing
it -- but the intention of having openmax be static was so that once
it's determined, we know what it is and never probe it again.
That is, on certain platforms I think you've traded startup-time
inefficiency for later run-time inefficiency.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author