add v8 snapshot instructions into the README

This commit is contained in:
Pierre Tachoire
2026-01-07 17:21:44 +01:00
parent d5f4ca15cc
commit d4807df2e9

View File

@@ -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