mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-13 07:07:17 +00:00
f4b96a1782
Node's `require()` is synchronous and somewhat slow, so importing the modules for submit-analytics.js ends up being about half of the runtime of `require('realm')`. With this change, when analytics is disabled, nearly all of the time spent on `require('realm')` (~100ms on my machine) is spent in node-pre-gyp-related functionality for loading the native module.