[Haskell-cafe] Design suggestion for Data.Binary.Defer
ndmitchell at gmail.com
Tue Jun 17 02:55:51 EDT 2008
Derek: Yes, I was slowly coming round to the idea of the third option.
It does mean that if you want to change the deferredness of a field,
you have to change the type, which is a substantial alteration.
> Is there any reason not to just write all lazy fields of variable size
> in a deferred manner?
I completely hadn't though of this! You will loose a bit of time, for
example reading fields which were previously not deferred will require
a file seek, but the effort/thought/efficiency trade-off is good. I
think I will go with this.
More information about the Haskell-Cafe