I wonder a+=({x}) is n while m+=(<x>) is n²?
It seems that the same kind of copying that would casue n² would also effect arrays with "too many" references. Is the few-reference- no-copying optimization in multiset/mapping operations broken?
/ Mirar
Previous text:
2003-01-29 10:18: Subject: Re: reasons why pike is better than python?
Yes; somehow I did not consider testing different number of loop iterations for order of-behaviour, when the point I was planning on making was that the entire construct was inappropriate. :-) And not too unfrequent in code written by inexperienced pike programmers.
/ Johan Sundström (a hugging punishment!)