www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Small-Size-Optimized Array

reply =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
Does Phobos contain any standard small-size-optimized (SSO) array 
that starts with a stack array and union-converts into a standard 
builtin D-array when grown beyond the size of the stack array?

If not has anybody put together one?
May 16 2016
next sibling parent Jack Stouffer <jack jackstouffer.com> writes:
On Monday, 16 May 2016 at 11:05:40 UTC, Nordlöw wrote:
 Does Phobos contain any standard small-size-optimized (SSO) 
 array that starts with a stack array and union-converts into a 
 standard builtin D-array when grown beyond the size of the 
 stack array?
No.
 If not has anybody put together one?
Not that I know of. Grapheme has small string optimized code in it though.
May 16 2016
prev sibling next sibling parent reply Vladimir Panteleev <thecybershadow.lists gmail.com> writes:
On Monday, 16 May 2016 at 11:05:40 UTC, Nordlöw wrote:
 Does Phobos contain any standard small-size-optimized (SSO) 
 array that starts with a stack array and union-converts into a 
 standard builtin D-array when grown beyond the size of the 
 stack array?
Have a look at tempCString, but it's for internal use only at the moment.
May 16 2016
parent =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
On Tuesday, 17 May 2016 at 00:50:53 UTC, Vladimir Panteleev wrote:
 Have a look at tempCString, but it's for internal use only at 
 the moment.
Thanks, Vladimir.
May 18 2016
prev sibling parent reply Nikolay <sibnick gmail.com> writes:
On Monday, 16 May 2016 at 11:05:40 UTC, Nordlöw wrote:
 Does Phobos contain any standard small-size-optimized (SSO) 
 array that starts with a stack array and union-converts into a 
 standard builtin D-array when grown beyond the size of the 
 stack array?

 If not has anybody put together one?
You can look to my experement (see iarray.d): https://bitbucket.org/sibnick/inplacearray.git
May 18 2016
parent =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
On Thursday, 19 May 2016 at 06:20:24 UTC, Nikolay wrote:
 You can look to my experement (see iarray.d): 
 https://bitbucket.org/sibnick/inplacearray.git
Thanks!
May 21 2016