Skip to content

Commit

Permalink
src: cache and resue isolate and contex pointers
Browse files Browse the repository at this point in the history
Many places these values are obtained through `env` pointer that
incurs function calls. Source in once and re-use as much as possible.
There are more of this pattern in this file, but those are either
one-time use or used in conditional blocks which means sourcing-in
those data early may not be beneficial.

PR-URL: #23024
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
  • Loading branch information
gireeshpunathil authored and danbev committed Sep 25, 2018
1 parent f004936 commit ea3bb9a
Showing 1 changed file with 83 additions and 66 deletions.
Loading

0 comments on commit ea3bb9a

Please sign in to comment.