Skip to content

optimize dynamic allocation alignment #17092

Closed
@thestinger

Description

@thestinger

The non-jemalloc allocator implementation should branch on the Rust end in order to use malloc / realloc / free. It will optimize out in essentially every real-world case, since alignment is rarely dynamic.

Exposing functions without the alignment parameter may also make sense, and having a branch on the Rust side for jemalloc would eliminate a branch for the low alignment case inside the allocator.

Metadata

Metadata

Assignees

Labels

I-slowIssue: Problems and improvements with respect to performance of generated code.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions