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_extra/deno.gni | |
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_extra/deno.gni')
-rw-r--r-- | build_extra/deno.gni | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build_extra/deno.gni b/build_extra/deno.gni index 89614cfc4..5f3f4aa48 100644 --- a/build_extra/deno.gni +++ b/build_extra/deno.gni @@ -28,15 +28,15 @@ template("create_snapshot") { ]) tool = ":snapshot_creator" visibility = [ ":*" ] # Only targets in this file can depend on this. - snapshot_out_cc = "$target_gen_dir/snapshot_$name.cc" + snapshot_out_bin = "$target_gen_dir/snapshot_$name.bin" inputs = [ invoker.js, ] outputs = [ - snapshot_out_cc, + snapshot_out_bin, ] args = [ - rebase_path(snapshot_out_cc, root_build_dir), + rebase_path(snapshot_out_bin, root_build_dir), rebase_path(invoker.js, root_build_dir), ] |