Skip to content
⌘ NSIS Forum Archive

optimization?

2 posts

Yathosho#

optimization?

does it make a difference (performance-wise), if i use this code
!include "WordFunc.nsh"
!insertmacro WordFind
!insertmacro WordFind2X
!insertmacro WordFind3X

Section one
${WordFind} "C:\io.sys C:\Program Files C:\WINDOWS" " C:\" "-02" $R0
SectionEnd

Section two
${WordFind2X} "[C:\io.sys];[C:\logo.sys];[C:\WINDOWS]" "[C:\" "];" "+2" $R0
SectionEnd

Section three
${WordFind3X} "[1.AAB];[2.BAA];[3.BBB];" "[" "AA" "];" "+1" $R0
Section
or that code

!include "WordFunc.nsh"

!insertmacro WordFind

Section one
${WordFind} "C:\io.sys C:\Program Files C:\WINDOWS" " C:\" "-02" $R0
SectionEnd

!insertmacro WordFind2X

Section two
${WordFind2X} "[C:\io.sys];[C:\logo.sys];[C:\WINDOWS]" "[C:\" "];" "+2" $R0
SectionEnd

!insertmacro WordFind3X

Section three
${WordFind3X} "[1.AAB];[2.BAA];[3.BBB];" "[" "AA" "];" "+1" $R0
Section
i previously read about putting the onInit function first to increase the init time. does the above have any effect, with or without SetDatablockOptimize?
kichik#
It only affects anything if the code you are using is extracting files. Since those functions don't deal with the File command, there should be no visible difference.