-
Notifications
You must be signed in to change notification settings - Fork 92
Slow compile time #21
Comments
I noticed a similar increase in compilation but I think it is strongly related to my recent upgrade of Go SDK from 1.4.2 to 1.5.1 for which they rewrote the compiler (C -> Go). I have confidence that the speed will increase again with next versions. |
Thanks for the feedback emicklei. I will hope for better performance in go 1.5.2 or beyond. |
I guess all the time is when the libv8.a is linked in. Maybe dynamic linking (for development builds) would speed things up. |
Can you provide any hints on how to try dynamic linking for development? This has been biting me for a while and I'd love to figure out a way to speed up the build in dev but I'm not very familiar with C++/cgo |
If you want to speed things up during development, one way is to instruct the linker to omit the symbol table and debug info during builds:
This will also generate significantly smaller binaries. |
FWIW, this is golang/go#12259 . |
One of the amazing things about Go is how fast it compiles. Since installing the great v8worker lib, my build time has slowed from <1 second to around 20 seconds. This really slows down the TDD workflow that I normally use, because I'm waiting 20 seconds for a unit test to run.
Any suggestions on how to avoid recompiling the v8worker every time I make the project?
The text was updated successfully, but these errors were encountered: