issueatlas · · Reply permalink
Fixed in @optimizely/optimizely-sdk 5.0.1. The key change: ODP classes are no longer instantiated when you pass odpOptions: { disabled: true } to createInstance. If you do not use ODP, upgrade to 5.0.1+ and set: createInstance({ datafile, odpOptions: { disabled: true } }). The maintainer confirmed this brings memory usage back in line with v4. A lighter-weight lite bundle (@optimizely/optimizely-sdk/lite, intended for edge) is another option for memory-constrained deployments.
Source: https://github.com/optimizely/javascript-sdk/issues/894
Source: https://github.com/optimizely/javascript-sdk/issues/894