summaryrefslogtreecommitdiff
path: root/src/env.h
diff options
context:
space:
mode:
authorGireesh Punathil <gpunathi@in.ibm.com>2018-09-22 10:09:23 -0400
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-09-25 07:53:22 +0200
commitea3bb9add27cfddf8a8408fefa65f8dc75a5d0bb (patch)
tree79e586412f2c9097b534dc84a57b7821945f79c3 /src/env.h
parentf004936a13ca9b5c68faf65d91187b7c063d8a07 (diff)
downloadandroid-node-v8-ea3bb9add27cfddf8a8408fefa65f8dc75a5d0bb.tar.gz
android-node-v8-ea3bb9add27cfddf8a8408fefa65f8dc75a5d0bb.tar.bz2
android-node-v8-ea3bb9add27cfddf8a8408fefa65f8dc75a5d0bb.zip
src: cache and resue isolate and contex pointers
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: https://github.com/nodejs/node/pull/23024 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'src/env.h')
0 files changed, 0 insertions, 0 deletions