isCodeNeedCache static method

bool isCodeNeedCache(
  1. Uint8List codeBytes
)

Implementation

static bool isCodeNeedCache(Uint8List codeBytes) {
  return QuickJSByteCodeCacheObject.cacheMode == ByteCodeCacheMode.DEFAULT &&
      codeBytes.length > 1024 * 10; // >= 10 KB
}