jnsmalm
jnsmalm

Reputation: 348

Compiling V8 JavaScript engine faster

I have a project where I'm using the V8 JavaScript engine from Google. I also use Travis CI to build and deploy my project. The build often exceeds the maximum time limit (~45 min) and fails because of this. I have done the following to speed up the compile time for V8 (which made some difference):

How could I speed up the compile time for V8 even more?

Upvotes: 1

Views: 1282

Answers (2)

jnsmalm
jnsmalm

Reputation: 348

I ended up using the built-in caching features in Travis CI. Time to compile went down from 45 min to 13 min. Happy! Thanks to the comments that pointed me in the right direction.

Upvotes: 1

pmed
pmed

Reputation: 1556

I use V8 binary package from a PPA. in my .travis.yml file. It looks like this:

before_install:
  - sudo add-apt-repository ppa:pinepain/libv8-5.2 -y
  - sudo apt-get update -q
  - sudo apt-get install libv8-dev -y

Upvotes: 1

Related Questions