diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-07-26 23:21:10 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-08-01 12:14:10 -0400 |
commit | 6b6fac209c97d5961ea875d4b22f66fa97272876 (patch) | |
tree | 5b12f2e80cc7697712ca7a2db622974105593f48 /BUILD.gn | |
parent | db8dc0e9f8c739a07089ca8077d49cf9c902ddc4 (diff) |
Optimize compile time by using asm.
Switches to using asm incbin to embed the V8 snapshot instead of
outputing C code and then compiling it.
Compile time for from_snapshot.o goes from 44s to 1s.
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -107,6 +107,12 @@ static_library("libdeno") { sources = [ "src/from_snapshot.cc", ] + data = [ + "$target_gen_dir/snapshot_deno.bin", + ] + data_deps = [ + ":bundle", + ] deps = [ ":create_snapshot_deno", ":deno_bindings", @@ -139,6 +145,9 @@ v8_source_set("deno_base_test") { "src/from_snapshot.cc", "src/mock_runtime_test.cc", ] + data = [ + "$target_gen_dir/snapshot_mock_runtime.bin", + ] deps = [ ":create_snapshot_mock_runtime", ":deno_base", |