
20 Jul
2004
20 Jul
'04
4:32 a.m.
On 20 July 2004 02:23, John Meacham wrote:
Cool, I can build more efficient versions on these now that I know the ByteArray# as Addr# trick.
I am curious what the best way to go about writing specialized versions is, placing the copying functions in a class, with (slow) default methods for everything and special instances for (IO)UArrays? or relying on RULES pragmas to do the appropriate specialization?
RULES is the way to go if you're just providing optimised versions. If you anticipate that there might be a semantic difference (I presume not), then a class is more appropriate. Cheers, Simon
7609
Age (days ago)
7609
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow