mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-02-04 06:23:45 +00:00
add v8 snapshot instructions into the README
This commit is contained in:
17
README.md
17
README.md
@@ -211,6 +211,23 @@ env.
|
|||||||
|
|
||||||
But you can directly use the zig command: `zig build run`.
|
But you can directly use the zig command: `zig build run`.
|
||||||
|
|
||||||
|
#### Embed v8 snapshot
|
||||||
|
|
||||||
|
Lighpanda uses v8 snapshot. By default, it is created on startup but you can
|
||||||
|
embed it by using the following commands:
|
||||||
|
|
||||||
|
Generate the snapshot.
|
||||||
|
```
|
||||||
|
zig build snapshot_creator -- src/snapshot.bin
|
||||||
|
```
|
||||||
|
|
||||||
|
Build using the snapshot binary.
|
||||||
|
```
|
||||||
|
zig build -Dsnapshot_path=../../snapshot.bin
|
||||||
|
```
|
||||||
|
|
||||||
|
See [#1279](https://github.com/lightpanda-io/browser/pull/1279) for more details.
|
||||||
|
|
||||||
## Test
|
## Test
|
||||||
|
|
||||||
### Unit Tests
|
### Unit Tests
|
||||||
|
|||||||
Reference in New Issue
Block a user