QuickJSByteCodeCache class
This is a bytecode cache class that caches bytecodes generated during JavaScript parsing. Use bytecode instead of JavaScript code string can result in a 58.1% reduction in loading time, particularly for larger JavaScript files (>= 1MB).
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getCacheDirectory(
) → Future< Directory> -
getCacheObject(
Uint8List codeBytes, {String? cacheKey}) → Future< QuickJSByteCodeCacheObject> -
isCodeNeedCache(
Uint8List codeBytes) → bool -
putObject(
Uint8List codeBytes, Uint8List bytes, {String? cacheKey}) → Future< void>