projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
5522b14
)
Encode immediately in hPutStr and hPutChar
author
Simon Marlow
<marlowsd@gmail.com>
Thu, 25 Nov 2010 10:25:20 +0000
(10:25 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Thu, 25 Nov 2010 10:25:20 +0000
(10:25 +0000)
This means that decoding errors will be detected accurately, and can
be caught and handled. Overall the implementation is simpler this way
too.
It does impose a performance hit on small hPutStrs, although larger
hPutStrs seem to be unaffected. To compensate somewhat, I optimised
hPutStrLn.
No differences found