From: ara.t.howard@... Date: 2005-12-04T11:22:33+09:00 Subject: Re: Implementation of String or Array #slice and similar ops? On Sun, 4 Dec 2005, Ron Jeffries wrote: > Thanks to all for the info on this. It sounds like with strings I won't get > any advantage from COW at all on slicing, and that even with arrays I'll not > be much better off. > > For my current purposes, I don't see how to use arrays anyway, since I'm > interested primarily in large chunks of contiguous memory. can you use narray? it stores the elements as continuous memory. i've got a patch that allows it's use with mmap to - so a file can be mapped, manipulated as an narray, and the bytes are persisted to file automagically. -a -- =============================================================================== | ara [dot] t [dot] howard [at] noaa [dot] gov | all happiness comes from the desire for others to be happy. all misery | comes from the desire for oneself to be happy. | -- bodhicaryavatara ===============================================================================