Hi again,
Please be aware that the
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
Cheers!
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!