mike2003 Posted July 27, 2008 Share Posted July 27, 2008 I had 3, 1, 1, 0 version of AutoIT very long And now i updated to 3, 2, 12, 1 $oldfile = FileOpenDialog("File", ".", "Text files (*.txt)", 1) if @Error = 1 then exit $i=0 while 1 $i=$i+1 ToolTip("aaa "&$i) $oldline = FileReadLine($oldfile,1789) wend in some my scripts i use this FileReadLine function in 3.1 its work very quick ( i see refresh of ToolTip("aaa "&$i)) i cant read tooltips number $i but! on new 3.2 its very very slow!!!! tooltips +1 on $i in ONE second!!!! all my scripts begin work very slow!! and with rise line-number for function speed slow and slow and slow win98 / pentium3 - 500 ansi version of 3.2 Please fix this or say me what i can do!!! ps sorry for english Link to comment Share on other sites More sharing options...
ChrisL Posted July 27, 2008 Share Posted July 27, 2008 Try this #Include <File.au3> $oldfile = FileOpenDialog("File", ".", "Text files (*.txt)", 1) if @Error = 1 then exit Local $aFile If Not _FileReadToArray($oldfile,$aFile) then MsgBox(4096,"Error", " Error reading log to Array error:" & @error) Exit EndIf For $i = 1 to $aFile[0] $line = $aFile[$i] ConsoleWrite($Line & @crlf) ToolTip("Line number " & $i) Next [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
mike2003 Posted July 27, 2008 Author Share Posted July 27, 2008 on WinXP (this computer) and that script AutoIt3A.exe very slow too but AutoIt3.exe normal speed may be bug in ansi version? Link to comment Share on other sites More sharing options...
mike2003 Posted July 27, 2008 Author Share Posted July 27, 2008 script in first post - for example only - demonstartion of speed but i am already have some other old my scripts and its have low speed only in ansi version for 98 very low Link to comment Share on other sites More sharing options...
mike2003 Posted July 27, 2008 Author Share Posted July 27, 2008 Try this #Include <File.au3> $oldfile = FileOpenDialog("File", ".", "Text files (*.txt)", 1) if @Error = 1 then exit Local $aFile If Not _FileReadToArray($oldfile,$aFile) then MsgBox(4096,"Error", " Error reading log to Array error:" & @error) Exit EndIf For $i = 1 to $aFile[0] $line = $aFile[$i] ConsoleWrite($Line & @crlf) ToolTip("Line number " & $i) Next thanks for that! i replace some my code with _FileReadToArray - its work very very faster then my old FileReadLine ( 5 sek VS 2 minutes)! its great! But the low speed in FileReadLine of Ansi version and normal speed in XP (with same hardwares) need a fix! Link to comment Share on other sites More sharing options...
ChrisL Posted July 27, 2008 Share Posted July 27, 2008 thanks for that!i replace some my code with _FileReadToArray - its work very very faster then my old FileReadLine ( 5 sek VS 2 minutes)! its great!But the low speed in FileReadLine of Ansi version and normal speed in XP (with same hardwares) need a fix!Using FilereadLine as far as I know sucks anyway, because each time you use it it reads from the start up to the line you need.Using the array should be much faster on any computer OS [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
mike2003 Posted July 27, 2008 Author Share Posted July 27, 2008 using FilereadLine as far as I know sucks anyway, because each time you use it it reads from the start up to the line you need.may be, but why one script work with diferent speed on AutoIt3.exeAutoIt3A.exeon same OS (win XP sp2)? Link to comment Share on other sites More sharing options...
Confuzzled Posted August 1, 2008 Share Posted August 1, 2008 Maybe your input text needs conversion overheads? Does it use some of the extended ANSI character set? Link to comment Share on other sites More sharing options...
mike2003 Posted August 1, 2008 Author Share Posted August 1, 2008 the simple script in first my post demonstrate this bug! no conversion... only lineread Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now