-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
optimizationstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Description
Just what the title says. The page size is fundamentally a constant for a given machine, so heap.pageSize() could be
implemented as a simple read from a global variable instead of needing to lookup the page size the first time its called and needing to use atomics. On every system I'm aware of, getting the page size is relatively easy to do so the startup
overhead should be minimal. This could even be done conditionally based on whether or not the user has replaced the options.queryPageSize function or not.
On Linux, at least, this is basically free since we are getting the page size from the auxiliary vector, and the start
code already iterates the entire aux vector anyways.
Metadata
Metadata
Assignees
Labels
optimizationstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.