RE: Looing for advice on profiling

10 Nov
2004
10 Nov
'04
5:26 a.m.
On 10 November 2004 10:08, Malcolm Wallace wrote:
"Simon Marlow"
writes: On 09 November 2004 17:04, Duncan Coutts wrote:
Are you using BinMem, or BinIO?
BinIO
Aaaaah. BinIO is going to be a lot slower than BinMem, because it does an hPutChar for each character, whereas BinMem just writes into an array. I never really optimised the BinIO path, because we use BinMem exclusively in GHC.
Is there a method in your Binary library to freeze a BinMem into a file all in one go? The original nhc98 Binary library allows this (`copyBin').
Yup, it's called 'writeBinMem'. Cheers, Simon
7500
Age (days ago)
7500
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow