-
Optimized-JS-V8
面向对象、设计模式与性能
有些C/C++开发者有些奇怪的观念。他们认为使用面向对象和设计模式会降低程序的性能。但V8证明了这种观念是错误的。V8的实现使用了许多设计模式,但依然非常高效。
下面列出V8中使用的两个模式:
工厂模式
当Javascript引擎执行一个脚本时,引擎为遇到的每个变量、函数或数组都创建一个实例。JSObject是所有这些对象的父对象(Object oriented, design patterns and performance
Some C/C++ developers have some strange ideas. They believe that the use of object-oriented and design patterns will reduce the performance of the program. But V8 proved that this idea is wrong. V8 implementation uses a number of design patterns, but still very efficient.
The following lists the two models used in V8:
Factory mode
When a Javascript engine s a script, the engine creates an instance of each variable, function, or array encountered by the engine. JSObject is the parent of all of these objects.)
- 2016-08-30 23:02:34下载
- 积分:1
-
demoADC
ADC C++ for 9S12XS128 FREESCALE
- 2012-07-03 12:15:26下载
- 积分:1
-
123
4X4点阵键盘+1602液晶显示做的计算器(AVR单片机)(4X4 matrix keyboard 1602 LCD calculator to do (AVR microcontroller))
- 2014-01-06 16:19:02下载
- 积分:1
-
SD-card
MSP430F149控制SD卡读写操作,支持FAT16文件系统(The MSP430F149 Control SD card read and write operations to support the FAT16 file system)
- 2013-05-15 10:09:44下载
- 积分:1
-
1
说明: 下面的程序利用友元函数求两点间的距离。请你将有关的程序补充完整,并总结为什么这里要用友元函数来求两点间的距离。(using friend to get the result.)
- 2015-07-14 16:16:25下载
- 积分:1
-
NVIC
这个是LPC1788开发板的测试用例 都已经试过可以编译通过(This is the LPC1788 development board test cases have been compiled through)
- 2015-07-06 20:42:05下载
- 积分:1
-
cpluspluskursu
c++ studying codes/c++ COURSE/EXAMPLE CODES/ NECATİ ERGİ N
- 2015-12-15 04:14:10下载
- 积分:1
-
Flashing-LED
led fleshing in use 8051
- 2011-09-06 14:33:42下载
- 积分:1
-
kinect_playground
说明: 一个基于kinect的鼠标小程序~~~用vs2008环境(A small program based on kinect mouse ~ ~ ~ with the vs2008 environment)
- 2011-04-05 17:46:43下载
- 积分:1
-
lpc1700
深入浅出lpc1700,适合初学者的好书。(Layman lpc1700, suitable for beginners books.)
- 2014-04-24 17:00:48下载
- 积分:1