Skip to content
This repository was archived by the owner on Apr 23, 2019. It is now read-only.
This repository was archived by the owner on Apr 23, 2019. It is now read-only.

design a custom allocation API #5

@thestinger

Description

@thestinger

Ideas to investigate:

  • aligned reallocation
  • in-place reallocation
    • fail if the operation cannot be performed in-place
    • very useful for some collection and allocator implementations
  • batched allocations and deallocations
  • sized deallocation
    • avoid reading the slab header in the thread cache fast path
    • if mandatory: avoid headers on large allocations
    • if mandatory: avoid usage of the huge allocation tree
  • real size output parameter
  • inlined fast path
    • avoid some branches and calculations when size is a constant
    • would cause harmful code bloat if not designed and used carefully

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions