This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: epoll_pwait broken?


Ugh, I'm a little braindead today. Ok, you might be able to optimize the constant load in that you can keep the same constant value on the stack for successive calls. However, in most cases, you have still turned a single "load constant into register" operation (on the glibc side) into "push constant onto stack" (on the user side) together with "load register from the stack" (on the glibc side, in epoll_pwait).

Davin


On Tue, 23 Jan 2007 15:52:17 -0500
"Carlos O'Donell" <carlos@systemhalted.org> wrote:

> 
> Pros:
> - User doesn't have to type "sizeof (sigset_t)"
> 
> Cons:
> - More code in glibc.
> - Compiler can't optimize constant load for multiple epoll_pwait calls.
> - Kernel and userspace interfaces look different in the documentation.
> 
> Cheers,
> Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]