Thread overview | |||||
---|---|---|---|---|---|
|
March 08, 2017 Is it possible to use std.experimental.allocator without the runtime or with the runtime disabled? | ||||
---|---|---|---|---|
| ||||
Is it possible to use std.experimental.allocator without the runtime or with the runtime disabled? It would be ideal for allocating audio buffers in the audio thread. malloc is tolerated but using a pre-allocated area with a fallback on malloc would be way better and faster too. |
March 08, 2017 Re: Is it possible to use std.experimental.allocator without the runtime or with the runtime disabled? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Guillaume Piolat | On 2017-03-08 12:59, Guillaume Piolat wrote: > Is it possible to use std.experimental.allocator without the runtime or > with the runtime disabled? I had a quick look through the imports, I could not find anything that I know uses the runtime. Although it does use exceptions and asserts in some places. Exceptions seem to only be used in the free_list module. It also uses compile time features from Phobos. -- /Jacob Carlborg |
March 08, 2017 Re: Is it possible to use std.experimental.allocator without the runtime or with the runtime disabled? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Wednesday, 8 March 2017 at 12:28:13 UTC, Jacob Carlborg wrote:
> On 2017-03-08 12:59, Guillaume Piolat wrote:
>> Is it possible to use std.experimental.allocator without the runtime or
>> with the runtime disabled?
>
> I had a quick look through the imports, I could not find anything that I know uses the runtime. Although it does use exceptions and asserts in some places. Exceptions seem to only be used in the free_list module. It also uses compile time features from Phobos.
Thanks Jacob. This is something I should have tried earlier.
|
Copyright © 1999-2021 by the D Language Foundation