赞 | 1 |
VIP | 357 |
好人卡 | 24 |
积分 | 1 |
经验 | 14896 |
最后登录 | 2022-12-23 |
在线时间 | 1641 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 66
- 在线时间
- 1641 小时
- 注册时间
- 2011-9-26
- 帖子
- 313
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
When benchmarking basic requests with a minimalistic schema (only one int column), even though YARV serviced requests 15% faster, it took much longer to load the environment (50% slower). This comes as no surprise since plain old (evil) eval is slower in YARV(...)In fact, the mere fact of requiring active_record (and indirectly ActiveSupport) causes a sharp decrease in performance.
eigenclass.org的测试结果,在YARV上执行的RoR比在1.8.6上执行要快15%,但是启动时加载环境慢了50%(记得以前在哪里看过,说Ruby每次eval都要修改环境)
So,在窗口过程里用eval获取窗口消息这种方法在Ace里会变得奇慢(限制一下CPU掉帧会变得非常明显)
@灼眼的夏娜 @七夕小雨 @晴兰 @yangff |
|