TrackerV3 and AVG Free Edition

Things you’d like to miss in the future...
admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Post by admin »

JustinF wrote:I wish I had good news, unfortunately I still have the delay. :( Using McAfee virus scan v9.1.
Hmm, well, it was a try. So now we know McAfee can't be fooled that easily.

But strange it is. Is TV3 the last program on earth using INI-files?

JustinF
Posts: 358
Joined: 28 Jun 2005 23:47
Location: Omaha, Nebraska, USA

Post by JustinF »

I just downloaded a program called Safarp. It uses an ini file and I don't notice any delay when it writes back to the file...of course Safarp's ini file has about 1/20th the amount of data in it, so this may be like comparing apples to oranges.
Justin
Windows 7 Professional

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Post by admin »

Yes, the amount is crucial, of course. My TV3-ini has 400 lines = 400 write operations. The other factor is whether the program saves all its stuff together on exit (as TV3 does).

BTW, I have AntiVir Guard (a German freeware virus scanner; same letters but not the same as AVG) and here the trick worked well! Exit time went down from about 3 seconds to zero.

spinner
Posts: 85
Joined: 01 Oct 2004 13:25

Post by spinner »

admin wrote:I could try a trick which should work if those scanners are after *.INI files looking like INI-files: temporarily write to some xyz.tmp file (hopefully ignored by the scanner) and then rename it to TrackerV3.ini. This way it should be scanned only once, right?
Or does AVG scan every file that is written?
AVG Free can be set to scan either:

(a) all files of all types

(b) potentially virus-carrying files (eg executable type, double extensions, etc)


I guess that most people have got this set to (b).

Further, I would have guessed that (b) excludes INI files. However when I temporarily suspend AVG Free's "Resident Shield" then TV3 exits very quickly just like it used to in the old days! YAY!!! I guess AVG just wants to check out files like BOOT.INI. WIN.INI and maybe it goes through them line by line.

spinner
Posts: 85
Joined: 01 Oct 2004 13:25

Post by spinner »

JustinF wrote:I just downloaded a program called Safarp. It uses an ini file and I don't notice any delay when it writes back to the file...of course Safarp's ini file has about 1/20th the amount of data in it, so this may be like comparing apples to oranges.
This thread makes me reflect on the other programs which take almost "for ever" to close and for me they are Xnews and Eudora. And both use INI files: my Xnews's main INI file is 300 lines (but it also has eight other much smaller INI files) and my Eudora's INI is 4,100 lines.

By contrast, my Opera has a reasonably big INI file (almost 1,100 lines in my case) but it closes very quickly indeed.

This is starting to sound like an AVG bug.

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Post by admin »

spinner wrote:This is starting to sound like an AVG bug.
But McAfee slows down, too...

JustinF
Posts: 358
Joined: 28 Jun 2005 23:47
Location: Omaha, Nebraska, USA

Post by JustinF »

admin wrote: But McAfee slows down, too...
Yep. If I disable McAfee, TrackerV3 exits very quickly...if I enable McAfee again, it takes several seconds for TrackerV3 to exit.
Justin
Windows 7 Professional

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Post by admin »

Ok, folks, now I did something more serious: I emulated the WritePrivateProfileString-API, ie I rolled my own INI-writing functions, and my impression is that TV3 now closes faster than ever!

spinner
Posts: 85
Joined: 01 Oct 2004 13:25

Post by spinner »

admin wrote:Ok, folks, now I did something more serious: I emulated the WritePrivateProfileString-API, ie I rolled my own INI-writing functions, and my impression is that TV3 now closes faster than ever!
It works for me! And I have to agree that it definitely seems faster here too! :-)

Very nice. Well done.

JustinF
Posts: 358
Joined: 28 Jun 2005 23:47
Location: Omaha, Nebraska, USA

Post by JustinF »

admin wrote:Ok, folks, now I did something more serious: I emulated the WritePrivateProfileString-API, ie I rolled my own INI-writing functions, and my impression is that TV3 now closes faster than ever!
Works for me, too. Thanks! After I restarted TrackerV3 I had to make sure I had the "Save settings on exit" option checked...it closed down so fast. :shock:

Just out of curiosity, are you now just opening/closing the file once instead of once for every line?

Thanks again,
Justin
Justin
Windows 7 Professional

Gandolf

Post by Gandolf »

Excellent!! I don't know what you have done but it works a treat!

peterbonge
Posts: 354
Joined: 25 May 2004 21:53

Post by peterbonge »

Same here with AVG. Really fast. Great work!
Regards,
Peter Bonge

My System: Windows 11 Pro, 64-bit, German

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Post by admin »

JustinF wrote:Just out of curiosity, are you now just opening/closing the file once instead of once for every line?
Yes. The API I used before did open-write-close the file for each and every value -- really dumb. Now I simply open-writeallvalues-close.

I felt a slight irony there working on making my program shut down faster... :wink:

Post Reply