www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - v0.2.1 of EMSI's containers library

reply "Brian Schott" <briancschott gmail.com> writes:
https://github.com/economicmodeling/containers

This containers library is built on top of Andrei's 
std.experimental.allocator. It's currently used by libraries 
internal to EMSI, as well as the open-source DCD project.

The containers are backed by malloc (Mallocator) by default, but 
you can specify any custom allocator that you want. The 
containers try to automatically call GC.addRange and 
GC.removeRange if they are templated on a reference type, so you 
should be able to safely store references to GC memory in these 
containers. If you want to disable this support, there is a 
template parameter for that.

Please report bugs on Github here: 
https://github.com/economicmodeling/containers/issues
Aug 31 2015
next sibling parent "welkam" <wwwelkam gmail.com> writes:
thanks for sharing
Aug 31 2015
prev sibling next sibling parent "Per =?UTF-8?B?Tm9yZGzDtnci?= <per.nordlow gmail.com> writes:
On Tuesday, 1 September 2015 at 04:03:48 UTC, Brian Schott wrote:
 https://github.com/economicmodeling/containers

 This containers library is built on top of Andrei's 
 std.experimental.allocator. It's currently used by libraries 
 internal to EMSI, as well as the open-source DCD project.
Great!
Sep 01 2015
prev sibling next sibling parent reply "Per =?UTF-8?B?Tm9yZGzDtnci?= <per.nordlow gmail.com> writes:
On Tuesday, 1 September 2015 at 04:03:48 UTC, Brian Schott wrote:
 https://github.com/economicmodeling/containers
Could the test (plot) be extended to show insertion performance for different allocators :)
Sep 01 2015
parent reply "Brian Schott" <briancschott gmail.com> writes:
On Tuesday, 1 September 2015 at 08:05:34 UTC, Per Nordlöw wrote:
 On Tuesday, 1 September 2015 at 04:03:48 UTC, Brian Schott 
 wrote:
 https://github.com/economicmodeling/containers
Could the test (plot) be extended to show insertion performance for different allocators :)
I could do that but I won't because I'd rather work on other things. I will tell you, however, that you can destroy the performance advantage these containers have by having the allocator create 1k blocks instead of 16 blocks. I think that this demonstrates that using std.experimental.allocator gives users several high-impact ways to optimize their programs.
Sep 01 2015
parent "Brian Schott" <briancschott gmail.com> writes:
On Tuesday, 1 September 2015 at 23:13:09 UTC, Brian Schott wrote:
 instead of 16 blocks
That should be "16k blocks".
Sep 01 2015
prev sibling next sibling parent reply "jmh530" <john.michael.hall gmail.com> writes:
On Tuesday, 1 September 2015 at 04:03:48 UTC, Brian Schott wrote:
 https://github.com/economicmodeling/containers
The link to documentation doesn't seem to have anything on it.
Sep 01 2015
parent reply "Brian Schott" <briancschott gmail.com> writes:
On Tuesday, 1 September 2015 at 13:51:45 UTC, jmh530 wrote:
 The link to documentation doesn't seem to have anything on it.
The package name on the left is expandable.
Sep 01 2015
parent "jmh530" <john.michael.hall gmail.com> writes:
On Tuesday, 1 September 2015 at 20:58:45 UTC, Brian Schott wrote:
 On Tuesday, 1 September 2015 at 13:51:45 UTC, jmh530 wrote:
 The link to documentation doesn't seem to have anything on it.
The package name on the left is expandable.
D'oh
Sep 01 2015
prev sibling parent =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= <per.nordlow gmail.com> writes:
On Tuesday, 1 September 2015 at 04:03:48 UTC, Brian Schott wrote:
 Please report bugs on Github here: 
 https://github.com/economicmodeling/containers/issues
Move semantics anyone? https://github.com/economicmodeling/containers/issues/25
Sep 12 2015