Expand comment in hPutStrLn
A comment on hPutStrLn
reads
An optimisation: we treat
hPutStrLn
specially, to avoid the overhead of a singleputChar '\n'
, which is quite high now that we have to encode eagerly.
This should reference some code or comment that explains why the cost is high, why we have to encode eagerly, what it even means to encode eagerly, etc.
Trac metadata
Trac field | Value |
---|---|
Version | 8.2.1 |
Type | Task |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Core Libraries |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |