Skip to content

Stop recommending wee_alloc #282

Open
@rparrett

Description

@rparrett

Where in the docs did you come across this?

https://rustwasm.github.io/docs/book/reference/code-size.html#avoid-allocation-or-switch-to-wee_alloc

Describe what about it does not make sense

Switching to wee_alloc is not good advice.

Why does it not make sense?

wee_alloc is unmaintained and has a serious memory leak bug.

See RUSTSEC-2022-0054 and rustwasm/wee_alloc#106

How could we improve it?

Remove references to wee_alloc.

Perhaps replace them with references to lol_alloc which has been suggested as an alternative.

But IMO this paragraph shouldn't speak about allocator-swapping as a mere tradeoff between speed and size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions