Show
Ignore:
Timestamp:
02/18/07 15:56:10 (21 months ago)
Author:
audreyt
Message:

* Convert VStr from String to ByteString?, and Syn from

String to ID, in Pugs. Benchmark shows the perf gain is 5%,
so it's not worth the trouble of writing a GHC 6.7-compatible
processor. The next commit will revert this commit.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Prim/List.hs

    r14999 r15296  
    317317        _neg1   = return (VInt $ -1) 
    318318        _junc   = \jtyp -> return . VJunc $ MkJunc jtyp Set.empty Set.empty 
    319         _''     = return (VStr "") 
     319        _''     = return (_VStr "") 
    320320        _fail   = fail $ "reduce is nonsensical for " ++ cast name 
    321321 
     
    381381    list    <- readRef ref 
    382382    strList <- fromVals list 
    383     return . VStr . concat . intersperse str $ strList 
     383    return . _VStr . concat . intersperse str $ strList 
    384384 
    385385sortByM :: (Val -> Val -> Eval Bool) -> [Val] -> Eval [Val]