This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/207] ucontext is very slow.
- From: "jakub at redhat dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 8 Jun 2004 14:38:14 -0000
- Subject: [Bug libc/207] ucontext is very slow.
- References: <20040607084537.207.a.darovskikh@compassplus.ru>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From jakub at redhat dot com 2004-06-08 14:38 -------
Hardly.
More than 50% of the time is spent in sigprocmask syscalls, which are needed
(the program can change its signal mask any time and this needs to be preserved,
caching current signal mask in userland would be a huge can of problems and
slowdowns for little gain).
The other big part of the total time is spent on saving/restoring FPU state
(again, swapcontext must do this) and that's about it.
Why aren't you using real threads instead?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://sources.redhat.com/bugzilla/show_bug.cgi?id=207
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.