Impressions of Mozart-Oz

Bjorn Gustavsson bjorn@REDACTED
Tue Dec 17 11:38:02 CET 2002


James Hague <jamesh@REDACTED> writes:

> Wandering a bit, I'd be curious to know about the history of the
> undocumented "vector" module, a C implementation of functional arrays.
> Sometimes not having fast array updates hurts, and this sounds like a good
> solution.  But it has been in stealth mode for a couple of releases now.

The current implementation of vectors is not as fast as it could be,
as it forces a fullsweep (major) garbage collection as soon as an vector
update has created pointers from the old generation heap to the new
generation heap.

For some uses, vectors will still out-perform other data structures.

We hope to make the vectors faster in a future release by implementing
a proper write barrier in the garbage collector.

/Bjorn
-- 
Björn Gustavsson            Ericsson Utvecklings AB
bjorn@REDACTED      ÄT2/UAB/F/P
			    BOX 1505
+46 8 727 56 87 	    125 25 Älvsjö



More information about the erlang-questions mailing list