[SVN] r3879 (TextMate)

Charilaos Skiadas cskiadas at uchicago.edu
Thu Jun 29 14:20:56 UTC 2006


For me the reason is more practical, in that if for some reason I  
decide to change the object in the LHS with an array, << will still  
work while += won't. In other words, << represents better the  
operation of appending to something.

Nice use of pastie btw ;)

Haris
On Jun 29, 2006, at 9:10 AM, Allan Odgaard wrote:

> On 29/6/2006, at 15:50, James Edward Gray II wrote:
>
>> [...] Now that we are on the same page here, the reason is:
>
> Here’s a small program to show the exponential time complexity of  
> += [1]
>
> Results are:
>
>                  user     system      total        real
>   1 x += :   0.050000   0.000000   0.050000 (  0.053051)
>   2 x += :   0.180000   0.210000   0.390000 (  0.391981)
>   3 x += :   0.370000   0.820000   1.190000 (  1.197491)
>   4 x += :   0.610000   1.630000   2.240000 (  2.277584)
>   5 x += :   0.920000   2.640000   3.560000 (  3.581763)
>
>
> [1] http://pastie.caboo.se/ 
> 2832_______________________________________________





More information about the textmate-dev mailing list