v+=([x:y]) seems to be n² to me, while v[x]=y is n. That is a huge, huge, difference, in my opinion. :)
/ Mirar
Previous text:
2003-01-29 09:52: Subject: Re: reasons why pike is better than python?
You're not really appending a mapping though; you're inserting a value. What's the benchmark time for doing v+=([ x:y ])?
Seems to be approximately three times slower than v[x] = y. Don't be surprised if that changes due to optimiser additions though - naïve code like this is a typical example of where the optimiser can help turn slow code into quicker code.
/ Johan Sundström (a hugging punishment!)