Difference between revisions of "Performance/IO"
Jump to navigation
Jump to search
BrettGiles (talk | contribs) (Adding Performance infobox and link to Library/Streams) |
m (Added link too WC page) |
||
Line 4: | Line 4: | ||
If the standard lazy IO operations are proving to be a bottleneck, |
If the standard lazy IO operations are proving to be a bottleneck, |
||
buffer-based IO is an alternative (hGetBuf/hPutBuf). This can be |
buffer-based IO is an alternative (hGetBuf/hPutBuf). This can be |
||
− | particularly effective when combined with packed strings. |
+ | particularly effective when combined with packed strings (see [[wc]]). |
Some external libraries also provide memory mapped IO. |
Some external libraries also provide memory mapped IO. |
Revision as of 15:31, 2 July 2006
Haskell Performance Resource
Constructs: Techniques: |
I/O
If the standard lazy IO operations are proving to be a bottleneck, buffer-based IO is an alternative (hGetBuf/hPutBuf). This can be particularly effective when combined with packed strings (see wc).
Some external libraries also provide memory mapped IO.
You may also wish to check out Library/Streams for a new approach to I/O.