无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 2523|回复: 3
打印 上一主题 下一主题

[求助] 重大更新!infcachebuild真的只是为了加速吗?

  [复制链接]
跳转到指定楼层
1#
发表于 2017-2-2 19:30:41 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 1400700226 于 2017-2-2 21:33 编辑

为了证实我的想法,我又在非常慢的电脑上用秒表做了精确的定量分析:

开机时注册initpki.dll,并执行infcachebuild,装声音驱动时upnp -pnp所花的时间三次分别为: 6.95秒  7.56秒  6.71秒

开机时注册initpki.dll,不执行infcachebuild,装声音驱动时upnp -pnp所花的时间两次分别为:7.9秒 7.9秒

开机时不注册initpki.dll,并执行infcachebuild,装声音驱动时upnp -pnp所花的时间两次分别为:7.69秒 7.69秒

开机时不注册initpki.dll,并且不执行infcachebuild,装声音驱动时upnp -pnp所花的时间大于14秒。不作测试。


所以可见,注册initpki.dll并没有影响infcachebuild的加速作用。

并且,注册initpki.dll着实没有影响到upnp -pnp的成功执行。




重大发现!!

老外写infcachebuild的作用就是加快bartpe.exe -pnp的速度;

我测试:

在一台处理器极其慢的电脑上,开PE装声卡驱动:

如果不执行infcachebuild便执行pecmd upnp -pnp,那么pnp操作需要15秒左右;

如果执行了infcachebuild后执行pecmd upnp -pnp,那么pnp操作需要7秒左右;;;

如果PE启动时注册了initpki.dll,那么,

如果不执行infcachebuild便执行pecmd upnp -pnp,那么pnp操作需要8秒左右;

如果执行了infcachebuild后执行pecmd upnp -pnp,那么pnp操作需要7秒左右;;;



这就是说,注册了initpki.dll,对pnp驱动的安装有很大的加速作用!其效果估计与infcachebuild大致差不多!

并且,即使注册了initpki.dll加速了infcachebuild的速度,也不影响两者相加所带来的速度提升!

并且,虽然在普通电脑上开机时即注册initpki.dll所需的时间较长,但是在处理器极其慢的电脑上注册initpki.dll的速度却并不比普通电脑慢多少!




我的帖子:
http://bbs.wuyou.net/forum.php?m ... &extra=page%3D1

中讲了,如果先注册initpki.dll可以大幅加快infcachebuild的速度;

但我不确定infcachebuild是否成功(但是infcachebuild后infcache.1确实被成功创建了)

我查了infcachebuild所带的文档,中说:

“InfCacheBuilder - Boosts Pnp Device installation in BartPE

...............
协议。。。
................

Usage: InfCacheBuild.exe [options] path_to_root
      -h|--help            - displays this help
      -k|--keep            - keeps *.pnf files
      -f|--force           - forces build of INFCACHE even if up to date
      -i|--noinf           - skips inf cache fix
      -c|--nofilecase      - skips filecase conversion
      -p|--pathtoinf       - then path instead is where inf files are located

Note this utility works also on Windows Vista but you should
put Windows XP or Windows W2K3 setupapi.dll in the same directory
of the executable, since Windows Vista setupapi.dll doesn't
export pSetupInfCacheBuild symbol.

Jobs done by InfCacheBuilder:
- Comment out CopyFiles, RenFiles and DelFiles sections from inf files
- build INFCACHE.1 using setupapi to speedup pnp detection
- If it finds a file named filecase.ini, all files matching the list will be uppercased,
  then the exit code will inform the buildscript to add -U option to mkisofs”


其中,

“- Comment out CopyFiles, RenFiles and DelFiles sections from inf files”

这个应该不会有错误的。

“- If it finds a file named filecase.ini, all files matching the list will be uppercased,
  then the exit code will inform the buildscript to add -U option to mkisofs”

这个主要是处理文件名的,以及允许非iso9660文件名之类的,也没用。




主要是
“- build INFCACHE.1 using setupapi to speedup pnp detection”


这里说了创建INFCACHE.1的作用就是加快pecmd upnp -pnp的速度。


但我实测,即使去掉infcachebuild,pecmd upnp -pnp的速度依旧飞快。

即使加上infcachebuild,pecmd upnp -pnp的速度也不见得更快。


求助,这个infcachebuild在什么情况下会起到加速作用?


InfCacheBuild-2.0.7z

61.49 KB, 下载次数: 7, 下载积分: 无忧币 -2

InfCacheBuild-src-2.0.7z

16.83 KB, 下载次数: 2, 下载积分: 无忧币 -2

2#
发表于 2017-2-2 21:04:58 | 只看该作者
又不支持W10(估計),又別說x64

回頭是岸,別走Y了

点评

我也不知道我自己在做啥  详情 回复 发表于 2017-2-2 21:24
回复

使用道具 举报

3#
 楼主| 发表于 2017-2-2 21:24:50 | 只看该作者
andos 发表于 2017-2-2 21:04
又不支持W10(估計),又別說x64

回頭是岸,別走Y了

我也不知道我自己在做啥

点评

没事!!有什么弄什么!即使是多走了“弯路”,也锻炼了身体不是?  详情 回复 发表于 2017-2-2 22:21
回复

使用道具 举报

4#
发表于 2017-2-2 22:21:06 | 只看该作者
1400700226 发表于 2017-2-2 21:24
我也不知道我自己在做啥

没事!!有什么弄什么!即使是多走了“弯路”,也锻炼了身体不是?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-7-23 19:12

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表