Is there a non-blocking version of hGetArray?

1 Oct
2004
1 Oct
'04
3:44 a.m.
Hi, I am a happy user of hGetBufNonBlocking, but I have come to realize that mutable arrays are nicer to work with than pointers, so I have considered using hGetArray instead. I do, however, depend on the fact that the function returns as soon as it has read data -- even if less than requested --, like hGetBufNonBlocking does. Is there currently a way to achieve this? Am I right assuming that hGetBuf and hGetArray do not differ much performance-wise? One of the reasons I am curious about using mutable arrays is because of Data.Array.Base.unsafeRead, which seems to be a *lot* faster than accessing the memory through a pointer. Is there anything comparable for pointer access? Peter
7536
Age (days ago)
7536
Last active (days ago)
0 comments
1 participants
participants (1)
-
Peter Simons