Applying Placement New to druntime and phobos
Manu
turkeyman at gmail.com
Tue Mar 4 01:27:29 UTC 2025
On Tue, 4 Mar 2025 at 11:21, Paul Backus via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:
> On Monday, 3 March 2025 at 18:57:05 UTC, Per Nordlöw wrote:
> > On Monday, 3 March 2025 at 15:12:20 UTC, Paul Backus wrote:
> >> I think a good first step would be to try replacing the
> >> current implementation(s) of `emplace` with calls to placement
> >> new.
> >
> > Do you mean doing this before replacing the top-level calls top
> > `emplace`?
>
> Yes.
>
Yes, this.
I've tried this already, and it reveals several implementation edge cases,
which will need to be bugged and resolved.
My plan was to try and replace the function internals with placement new
for as many cases as are working properly, and the code itself will act as
a document detailing which cases are outstanding and need resolution.
Please do contribute to this effort if you're enthusiastic! I have very
little free time rn.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20250304/71e55f40/attachment.htm>
More information about the Digitalmars-d
mailing list