[Haskell-cafe] Data.Vector.Mutable.mapM
Joachim Breitner
mail at joachim-breitner.de
Thu Oct 20 21:47:42 CEST 2011
Hi,
I’m consdering to change some performance critical code from Vector to
MVector, hopefully avoiding a lot of copying and garbage collecting. But
it seems that the Data.Vector.Mutable interface at
http://hackage.haskell.org/packages/archive/vector/0.9/doc/html/Data-Vector-Mutable.html is quite limited; e.g. I am missing simple functions having type
modifyM :: PrimMonad m => (a -> m a) -> MVector (PrimState m) a -> m ()
that would do something with each element in the vector.
Is this an indication that such use is actually not desired, or is it
just the case that nobody has developed that yet?
Thanks,
Joachim
--
Joachim "nomeata" Breitner
mail at joachim-breitner.de | nomeata at debian.org | GPG: 0x4743206C
xmpp: nomeata at joachim-breitner.de | http://www.joachim-breitner.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20111020/faa1a316/attachment.pgp>
More information about the Haskell-Cafe
mailing list