| Thread overview | |||||||
|---|---|---|---|---|---|---|---|
|
April 24, 2019 Re: Mir Algorithm 3.4.1 - RCArray and RCPtr | ||||
|---|---|---|---|---|
| ||||
Posted in reply to 9il | On Wednesday, 24 April 2019 at 01:34:58 UTC, 9il wrote:
>
> Thread safe RC Array and Ptr. Plus C++ headers for code integration.
>
> [snip]
Cool.
Does this make any use of DIP1000? How is the run-time/memory performance vs. the GC versions?
| |||
April 24, 2019 Re: Mir Algorithm 3.4.1 - RCArray and RCPtr | ||||
|---|---|---|---|---|
| ||||
Posted in reply to jmh530 | On Wednesday, 24 April 2019 at 10:52:14 UTC, jmh530 wrote: > On Wednesday, 24 April 2019 at 01:34:58 UTC, 9il wrote: >> >> Thread safe RC Array and Ptr. Plus C++ headers for code integration. >> >> [snip] > > Cool. > > Does this make any use of DIP1000? How is the run-time/memory performance vs. the GC versions? Can't answer for mir, but automem uses DIP1000: https://github.com/atilaneves/automem I haven't profiled it against "the GC version", but it would highly depend on the allocators used and the application. | |||
April 24, 2019 Re: Mir Algorithm 3.4.1 - RCArray and RCPtr | ||||
|---|---|---|---|---|
| ||||
Posted in reply to jmh530 | On Wednesday, 24 April 2019 at 10:52:14 UTC, jmh530 wrote: > On Wednesday, 24 April 2019 at 01:34:58 UTC, 9il wrote: >> >> Thread safe RC Array and Ptr. Plus C++ headers for code integration. >> >> [snip] > > Cool. > > Does this make any use of DIP1000? How is the run-time/memory performance vs. the GC versions? RC types are created to be used with DIP1000. Plus, Mir Algorithm used in production with this DIP. See configuration "dips" [1] Well, the allocator support is not ready yet. But the mir_rc_context already contains `void* allocator` that will be replaced in the future with nothrow @nogc allocator interface (maybe this or next year). For now, Mir RC types are like a C++ shared_ptr without allocators and with the same performance. 1. https://github.com/libmir/mir-algorithm/blob/master/dub.sdl#L26 | |||
April 24, 2019 Re: Mir Algorithm 3.4.1 - RCArray and RCPtr | ||||
|---|---|---|---|---|
| ||||
Posted in reply to 9il | On Wednesday, 24 April 2019 at 14:05:28 UTC, 9il wrote:
> [snip]
>
> RC types are created to be used with DIP1000. Plus, Mir Algorithm used in production with this DIP. See configuration "dips" [1]
>
> Well, the allocator support is not ready yet. But the mir_rc_context already contains `void* allocator` that will be replaced in the future with nothrow @nogc allocator interface (maybe this or next year). For now, Mir RC types are like a C++ shared_ptr without allocators and with the same performance.
>
> 1. https://github.com/libmir/mir-algorithm/blob/master/dub.sdl#L26
Thanks.
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply