Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
use a class instead of redefining properties
For the context object passed into handlers, we were previously redefining the getters every single time, which is slow in V8. This change adds a class for contexts which holds those getters so they're only defined once.
- Loading branch information
1 parent
5afdc5b
commit c5b5053
Showing
1 changed file
with
20 additions
and
11 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