Last month, the company was infected by a virus and the security department installed a newer version of McAfee/McShield and set the scanning mode to paranoia.
So all workstations in production are running now in these changed settings.
After this, we got reports the application we build is extremely slow in some cases. Menus which pop up instantly before took about 4 seconds to open.
Data send to servers are getting there too late.
We discovered that when we disable the logging of the application (at key points a log is written with functional/technical info on the local workstation) the performance drop was gone.
Looking at the code, it is just something like this:
Code: Select all
If SalFileOpen( fhLog, sFile, nFlags )
Call SalFilePutStr( fhLog, "Some text to log" )
Call SalFileClose( fhLog )
Code: Select all
If VisFileOpen( fhLog, sFile, nFlags ) = VTERR_Ok
Call VisFileWriteString( fhLog, "Some text to log" )
Call VisFileClose( fhLog )
When I disable the McShield service, the difference is minimal, but while running McShield the performance is getting very low.
The Vis functionality is slow also, but at least 2 times faster compared to Sal.
So, my question is : why is the Vis code faster? Seems the internal coding, the way how the files are accessed is causing McAfee to scan the file more thorough.
On my home workstation running Nod32 anti-virus, I do not see the huge performance difference.
So i would like to ask you, to use the testapplication in this post and see if there are performance differences between Sal and Vis on your setups (having other virusscanners).