Board index » delphi » Re: Help not working for Delphi Win32 projects
Ingvar Anderberg
Delphi Developer |
Ingvar Anderberg
Delphi Developer |
Re: Help not working for Delphi Win32 projects2006-04-20 04:24:08 AM delphi186 "Jon Robertson" <XXXX@XXXXX.COM>skrev i meddelandet news:44469be5$XXXX@XXXXX.COM... QuoteIngvar Anderberg writes: |
Andreas Hausladen
Delphi Developer |
2006-04-20 04:45:04 AM
Re: Help not working for Delphi Win32 projects
Jon Robertson writes:
QuoteWhat was slow that is now faster? code depending on the CPU. The FileExists() function is very slow because it uses FileAge what itself uses FindFirstFile. But GetFileAttributes() is a lot faster than FindFirstFile and has the same effect. The IDE uses SetCurrentDir() a lot. But the calls look like this: Other function calls... SetCurrentDir('C:\DelphiProj\'); SetCurrentDir('C:\DelphiProj'); SetCurrentDir('C:\DelphiProj\'); SetCurrentDir('C:\DelphiProj'); SetCurrentDir('C:\DelphiProj\'); ... (about 10 times more) Other function calls SetCurrentDir('C:\DelphiProj\Test'); SetCurrentDir('C:\DelphiProj\Test\'); SetCurrentDir('C:\DelphiProj\Test'); SetCurrentDir('C:\DelphiProj\Test\'); SetCurrentDir('C:\Delphi\Proj\Test'); ... The DelphiSpeedUp simply removes the tailing backslash and compares it to the old value. The new ExpandFileName() uses a hash table that is cleared after a (different) SetCurrentDir/SetCurrentDirecoryA/W call. And some more function. -- Regards, Andreas Hausladen |
Jon Robertson
Delphi Developer |
2006-04-20 04:53:08 AM
Re: Help not working for Delphi Win32 projects
Andreas Hausladen writes:
Quote>What was slow that is now faster? dialogs and opening projects? (Based on your list.) I also assume that installed DelphiSpeedUp has no impact on generated code. (IOW, the original RTL functions are still used by apps generated with Delphi.) Thanks for the clarifications. -- Jon Robertson Borland Certified Advanced Delphi 7 Developer MedEvolve, Inc www.medevolve.com |
Andreas Hausladen
Delphi Developer |
2006-04-20 05:23:04 AM
Re: Help not working for Delphi Win32 projects
Jon Robertson writes:
QuoteGreat details. I am still not sure what functionality in Delphi 6 I would is restored. QuoteI also assume that installed DelphiSpeedUp has no impact on generated -- Regards, Andreas Hausladen |
Anders Isaksson
Delphi Developer |
2006-04-20 04:57:59 PM
Re: Help not working for Delphi Win32 projects
Sarah writes:
QuoteBDS 2006 Architect with Update 2 and DelphiSpeedUp: -- Anders Isaksson, Sweden BlockCAD: web.telia.com/~u16122508/proglego.htm Gallery: web.telia.com/~u16122508/gallery/index.htm |
Sarah
Delphi Developer |
2006-04-20 11:22:24 PM
Re: Help not working for Delphi Win32 projects
Anders Isaksson writes:
QuoteI see the same. But Shift-F1 or Ctrl-F1 or Alt-F1 or AltGr-F1 all work, |
Sarah
Delphi Developer |
2006-04-21 12:12:03 AM
Re: Help not working for Delphi Win32 projects
Andreas Hausladen writes:
QuoteYou are right. DelphiSpeedUp does not change anything for the generated Thanks, Sarah |
Andreas Hausladen
Delphi Developer |
2006-04-21 12:36:29 AM
Re: Help not working for Delphi Win32 projects
Sarah writes:
QuoteIs there any other setup that can affect the generated executables as <code> unit SpeedUp; interface uses Windows; implementation initialization LoadLibrary('DelphiSpeedUp7.dll'); end. </code> -- Regards, Andreas Hausladen (andy.jgknet.de/blog) |
Andreas Hausladen
Delphi Developer |
2006-04-21 01:39:44 AM
Re: Help not working for Delphi Win32 projects
Or even better:
<code> procedure DSUDummy; external 'DelphiSpeedUp6.dll' name 'Dummy'; initialization DSUDummy; // does nothing but exists end; </code> -- Regards, Andreas Hausladen (www.kylix-patch.de.vu - unofficial Kylix 3 patches) (andy.jgknet.de/blog) |