Skip to content

Use a smarter allocator #4

@Forty-Bot

Description

@Forty-Bot

Right now we use an arena-style allocator. Every time we want to allocate memory, we bump the base pointer and return the previous value. This is extremely-simple, but it wastes memory in two ways: first, if an object doesn't fit in the current page, we lose all the unused space in that page. Second, we can't free objects. A smarter allocator could keep track of free memory and re-use it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions