#3909: Priority queues in containers
-------------------------------------------+--------------------------------
Reporter: LouisWasserman | Owner: LouisWasserman
Type: feature request | Status: assigned
Priority: normal | Milestone:
Component: libraries (other) | Version: 6.12.1
Keywords: containers, priority queue | Difficulty:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: None/Unknown
-------------------------------------------+--------------------------------
Comment(by LouisWasserman):
Yeah. When I've needed real-time performance, I'd probably do something
like
{{{
insert x $! queue
}}}
which defers the lazy work by one operation, but only by one operation.
Essentially, I'd like to be able to guarantee that {{{seq}}} actually
guarantees a fully evaluated spine, cf. Data.Map or Data.IntMap.
I'm willing, though, to perhaps co-author a package for pairing heaps, and
then to recommend that package in the containers documentation as a speedy
implementation for people who are willing to settle for amortized time
bounds in exchange for overall speedy performance.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3909#comment:28>
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