Skip to content

Allocgate #10052

Closed
Closed
@leecannon

Description

@leecannon

It was noticed in #10037 that LLVM is not able to properly optimize interfaces that use @fieldParentPtr as per @SpexGuy's comment.

The Random interface was changed in #10045 to instead use a type erased pointer in place of @fieldParentPointer resulting in significant performance improvement.

This issue is to track applying the same change to Allocator, however due to this interface being much more widely used it is planned to be merged just before the 0.9.0 release.

Soon I will open a draft PR to begin working on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingImplementing this issue could cause existing code to no longer compile or have different behavior.enhancementSolving this issue will likely involve adding new logic or components to the codebase.optimizationstandard libraryThis issue involves writing Zig code for the standard library.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions