[GHC] #6084: Add stg_ap_pnnv and related call patterns
GHC
cvs-ghc at haskell.org
Tue Oct 9 19:56:10 CEST 2012
#6084: Add stg_ap_pnnv and related call patterns
---------------------------------+------------------------------------------
Reporter: SimonMeier | Owner: simonmar
Type: feature request | Status: new
Priority: normal | Milestone: 7.8.1
Component: Runtime System | Version: 7.4.1
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by tibbe):
I don't understand this issue well enough to comment on details, but if
it's true that continuation heavy code is helped by this change, should we
also consider covering the call pattern of binary:
{{{
newtype Builder = Builder {
runBuilder :: (Buffer -> IO L.ByteString)
-> Buffer
-> IO L.ByteString
data Buffer = Buffer {-# UNPACK #-} !(ForeignPtr Word8)
{-# UNPACK #-} !Int -- offset
{-# UNPACK #-} !Int -- used bytes
{-# UNPACK #-} !Int -- length left
}
}}}
and attoparsec:
{{{
newtype Parser t a = Parser {
runParser :: forall r. Input t -> Added t -> More
-> Failure t r
-> Success t a r
-> IResult t r
}
newtype Input t = I {unI :: t}
newtype Added t = A {unA :: t}
type Failure t r = Input t -> Added t -> More -> [String] -> String
-> IResult t r
type Success t a r = Input t -> Added t -> More -> a -> IResult t r
data More = Complete | Incomplete
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6084#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list