Re: structs as large stack allocated objects vs structs as "pass by value" objects.

2014-02-23 Thread Rikki Cattermole
On Sunday, 23 February 2014 at 14:36:36 UTC, Arlon Brandy wrote: Today I hit two problems essentially which got me thinking about how structs are used in D by most of the code I've seen so far. Both problems are in: http://d.puremagic.com/issues/show_bug.cgi?id=9513 So the RedBlackTree create

structs as large stack allocated objects vs structs as "pass by value" objects.

2014-02-23 Thread Arlon Brandy
Today I hit two problems essentially which got me thinking about how structs are used in D by most of the code I've seen so far. Both problems are in: http://d.puremagic.com/issues/show_bug.cgi?id=9513 So the RedBlackTree create excessive copies of large structs via binaryFun, that and the ob