[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adjustable Arrays



This relates to the MCL implementation of Adjustable Arrays.

Will the following create an horribly inneficient
and fragmented array?

(defvar foo
  (make-array 0 :adjustable t))

(dotimes (k 100)
  (adjust-array foo k))

Or does MCL (and in general most Common Lisp systems) expand
arrays by a minimum quantum so that it does not fragment so
badly in cases like above.

Thanks for any answers,
it will tell me how to use adjustable arrays.

Guillaume Cartier
LACIM, Universite du Quebec a Montreal.
Bureau: (514) 987-4290
E-Mail: cartier@math.uqam.ca