-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
optimisationsomething that needs doing for performancesomething that needs doing for performance
Description
Currently, memory (and soon tables) require explicit bounds checks to ensure safety. This incurs an additional read, and certainly additional branches.
One technique to reduce this would be to use mmap to ensure that out-of-bounds accesses cause a segmentation fault, and then handle the segmentation fault by trapping. Thus, the assumption is that the memory access will succeed, but that there's a guarantee that a segfault will be raised on out-of-bounds accesses.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
optimisationsomething that needs doing for performancesomething that needs doing for performance