Hello!And another noob question from me. I need to store integer-indexed structure with fast, preferably constant-time r/w access in the acid-state. My algorithm ideally lays on mutable arrays, but as far as I see, acid-state can't contain mutable structures. Should I move to IntMap, or there is some way to make acid-state store log of ST-monad writes?
--
You received this message because you are subscribed to the Google Groups "HAppS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to happs+un...@googlegroups.com.
To post to this group, send email to ha...@googlegroups.com.
Visit this group at http://groups.google.com/group/happs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Keep in mind that you are hitting the filesystem every time you perform a transaction. I suspect the performance difference between IntMap and a mutable array would be pretty small.
Could you not get the best of both worlds by using ST when doing a batch update and plain IntMap when doing a small update?