Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Global window object

$
0
0
Hi again,

Please be aware that the HostItemFlags.GlobalMembers feature is quite expensive. It requires the script engine to call back to the host for all global property access, and that's a performance killer for V8, at least in scenarios that require fast access to global properties.

Support for this feature is enabled by default in order to maintain API compatibility, but we recommend that performance-critical applications disable it by using V8ScriptEngineFlags.DisableGlobalMembers. Of course, if you do that, you'll have to use a different technique to expose host methods at the global level.

Cheers!

Viewing all articles
Browse latest Browse all 2297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>