Re: question

new topic     » goto parent     » topic index » view thread      » older message » newer message

> > ... 
> > procedure main ()
> > 	sequence tmp
> > 	sequence data
> > 	tmp = f ()
> > 	data = tmp [2]
> > 	data = append (data, "something")
> > ...
> > end procedure 

hello, I'm new here.

looking at the docs, this sequence should be faster and cost
less memory:

  data = f()
  data = data[2]
  data = append(data,"something")

i'm guessing that there is actually no copying going on here at all.
(as far as gc, the docs don't refer to a traditional gc.
memory is reclaimed continuously rather than in a gc phase)

with all interpreters, the best you can do is time stuff.

regards, uboy (NZ)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu