Enhanced array appending

grauzone none at example.net
Wed Dec 23 06:54:20 PST 2009


Andrei Alexandrescu wrote:
> grauzone wrote:
>> Steven Schveighoffer wrote:
>>> All,
>>>
>>> I created a new patched druntime that prevents array stomping and at 
>>> the same time increases append performance for thread-local array 
>>> appending.
>>>
>>> The patch is attached to bugzilla entry 3637. ( 
>>> http://d.puremagic.com/issues/show_bug.cgi?id=3637 )
>>
>> Nobody cares about it? (Except someone commenting in bugzilla, but 
>> where's Andrei and Walter?)
> 
> The entire Phobos team discussed this change very thoroughly. We are all 
> very excited about it.

Did anyone try it and make initial tests?

>> Also, what again were the arguments against adding a "capacity" field 
>> in the slice struct to deal with the append problem?
>>
>> I think Go does this.
> 
> But Go is unfinished. When they'll finish it, they'll remove the 
> capacity field :o).

I believe not even you can predict the future.

> Stop being a curmudgeon and give us some love.

Sorry. dmd compiler bugs made me this way. I mean no harm.

> 
> Andrei



More information about the Digitalmars-d mailing list