-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GL,Audio: use plain old binary search for extension setup.
Because the cost of hundreds of tiny allocations when filling a std::unordered_map (and then the cache unfriendliness of the whole thing) definitely overweights the potential speedup by searching in O(1) instead of O(log n). Same approach is chosen in the upcoming Vulkan wrapper, I just backported it here. This strips about 8 kB off the Emscripten build.
- Loading branch information
Showing
2 changed files
with
158 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.