JavaScript的性能问题
(摘自《Ajax+Lucence构建搜索引擎》)
javascript是一种解释型语言,性能无法达到和C、C++等编译语言的水平,但还是有一些方法来改进。
1、循环
JavaScript中的循环方式有for(;;)、while()、for(in)3种。其中for(in)的效率极差,因为for(in)执行过程中需要查询散列键。for(;;)和while()比较,while循 ...
- 15:42
- 浏览 (1160)
- 评论 (0)
- 分类: javaScript
环境: jdk5.0 Tomcat5.5 Apahce2.2.3
需要下载tomcat连结器jk 1.2.20 tomcat.apache.org/connectors-doc/
第一步: 编写workers.properties
最简单的配置
# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
...
- 13:24
- 浏览 (1980)
- 评论 (1)
我的相册
2006国米全家福
共 3 张
共 3 张
最近加入圈子
最新评论
-
cxf+spring+struts2的hell ...
Cxf2.08+spring2+struts2下可以跑通。
-- by lycmlove -
cxf+spring+struts2的hell ...
最后在浏览器里运行:http://localhost:8080/HelloWor ...
-- by samwalt -
cxf+spring+struts2的hell ...
hanqiaorui 写道qianlei007 写道 &n ...
-- by samwalt -
cxf+spring+struts2的hell ...
qianlei007 写道 <impo ...
-- by hanqiaorui -
cxf+spring+struts2的hell ...
<import resource="classpath:META-INF/ ...
-- by qianlei007







评论排行榜