Hi,

Is there a way to specify a minimum allocation size for PMCs like strings or
arrays ?
Something like in perl : %h = 1000 ?

It could boost execution times when you have a good idea of the space you
need.
For example, I'd like to do:

#ensure that the array has enough allocated storage for 1000000 elements
without need for allocationg memory
new P0, .Array, 1000000

and then push 1,000,000 elements.

N.B: it is not the same as

new P0, .Array
P0 = 1000000

Thx
Karl

Reply via email to