You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add functions to separate compilation from running to speed up start times on new isolates loading the same scripts. (#206)
* CompileScript + RunCompiledScript
Co-authored-by: Dylan Thacker-Smith <[email protected]>
* Use cached data pointer instead of copying data to a new byte slice
- Compile options support
- Add Bytes() on cached data, lazy load
* Revert "Use cached data pointer instead of copying data to a new byte slice"
This reverts commit 45a127e.
* RtnCachedData to handle error and accept option arg
* RunScript accepts cached data, CompileAndRun does not
- updated changelog
- updated readme
* Introduce UnboundScript
- Keep RunScript api
* Input rejected value can be ignored
* Fix warnnings around init
* Delete wrapping cached data obj instead of just internal ptr
* panic if Option and CachedData are used together in CompileOptions
* Use global variables to share C++ enum values with Go
* Rename CompilerOptions Option field to Mode
* Rename ScriptCompilerCachedData to CompilerCachedData
For brevity and because we aren't really exposing the concept of
a ScriptCompiler and there currently isn't another public compiler
type in the V8 API.
Co-authored-by: Dylan Thacker-Smith <[email protected]>
0 commit comments