www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Collection, why COW collection are important

reply deadalnix <deadalnix gmail.com> writes:
The hack team recently released project to add COW collection to 
hack in addition to current, reference type, collections. You can 
find explanation here :

http://hhvm.com/blog/10649/improving-arrays-in-hack

As collection are discussed here, I think this is relevant, 
especially the explanations as of why COW matters.
Oct 31 2015
next sibling parent Sebastiaan Koppe <mail skoppe.eu> writes:
On Saturday, 31 October 2015 at 23:02:12 UTC, deadalnix wrote:
 The hack team recently released project to add COW collection 
 to hack in addition to current, reference type, collections. 
 You can find explanation here :

 http://hhvm.com/blog/10649/improving-arrays-in-hack

 As collection are discussed here, I think this is relevant, 
 especially the explanations as of why COW matters.
I found the first comment at the link to be a better explanation of why immutable containers matter than the article's explanation why COW matters.
Oct 31 2015
prev sibling parent reply Gary Willoughby <dev nomad.so> writes:
On Saturday, 31 October 2015 at 23:02:12 UTC, deadalnix wrote:
 The hack team recently released project to add COW collection 
 to hack in addition to current, reference type, collections. 
 You can find explanation here :

 http://hhvm.com/blog/10649/improving-arrays-in-hack

 As collection are discussed here, I think this is relevant, 
 especially the explanations as of why COW matters.
What does COW mean here?
Nov 01 2015
parent Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= writes:
On Sunday, 1 November 2015 at 13:43:25 UTC, Gary Willoughby wrote:
 What does COW mean here?
Copy-On-Write. You can use it with shared ref counting and immutable for filling out templates, transactional computations and other situations where you want to create a new version of something without affecting the original immediately.
Nov 01 2015