#635: Replace use of select() in the I/O manager with epoll/kqueue/etc.
-----------------------------------------+----------------------------------
Reporter: simonmar | Owner: bos
Type: task | Status: new
Priority: normal | Milestone: _|_
Component: libraries/base | Version: 6.4.1
Resolution: | Keywords:
Difficulty: Project (more than a week) | Os: Unknown/Multiple
Testcase: N/A | Architecture: Unknown/Multiple
Failure: Runtime performance bug |
-----------------------------------------+----------------------------------
Comment (by simonmar):
Replying to [comment:25 bos]:
> There is indeed one `withForeignPtr` per FD. ISTR I'd been told that was
effectively free, so I didn't worry about it. Clearly, we could use a
plain Ptr instead and just free the pollfd data by hand when shutting
down.
You're right - `withForeignPtr` should be free, as long as the
`ForeignPtr` is strict. Probably wouldn't hurt to glance at the Core and
check it is being inlined away though.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/635#comment:26>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs