Skip to content

Performance implications of mapping vs bounds-checked allocations #2

Description

@taralx

Since one of the intended uses of this is for ArrayBuffers, I am wondering about the performance (and predictability) implications of using mapping operations on buffers whose sizes are not a multiple of a page size (and indeed may be smaller than a page). What is supposed to happen if you access past the end of a mapped buffer?

At one point I had envisioned a set of memory instructions that accepted an object pointer and performed bounds checks (WebAssembly/gc#109). Do you imagine that these mapping instructions would be able to take the place of those?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions