This is the mail archive of the glibc-bugs@sources.redhat.com 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]

[Bug libc/207] ucontext is very slow.


------- 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.


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