最近在项目中使用v8来进行扩展,下面简单说一下使用v8过程中遇到的一些问题. v8的多线程调用 最初调研v8的测试代码是单线程的,后来一个项目在多线程中使用,出现了一些问题,后来看到参考3中的才恍然大悟,又翻了v8.h中关于Isolate的注释. /** * Isolate represents an isolated instance of the V8 engine. V8 * isolates have completely separate states. Objects from
原文:https://developers.google.com/v8/?hl=zh-CN Be Prepared before writing code[9:35] Understand how V8 optimzes Javascript; Write code mindfully; Learn you tools and how they can help you; Be Prepared - Hidden Classes[10:30] Hidden Classes Make JavaSc