|
本帖最后由 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在什么情况下会起到加速作用?
|
|