[squeak-dev] Fooling the virus scanners (was: Proper use of SourceFiles and "CurrentReadOnlySourceFiles cacheDuring:")

David T. Lewis lewis at mail.msen.com
Sun Jan 9 17:02:48 UTC 2022

Hi Christoph,

On Thu, Jan 06, 2022 at 10:02:25PM -0500, David T. Lewis wrote:
> On Fri, Jan 07, 2022 at 02:29:18AM +0000, Thiede, Christoph wrote:
> > Hi Dave,
> > 
> > 
> > StandardFileStream registry asArray size is 2.
> > 
> > 
> > > but it has no noticeable performance impact on my system.
> > 
> > 
> > I envy you. :-) No 5 - 10 minutes waiting for installing Metacello?
> I smell a virus scanner.
> Dave

I have an idea. Let's see if your virus scanner is less invasive
if you are using a compresses sources file. The compressed sources
should look like random binary data, and maybe this will appear
less suspicious to the scanner. Or maybe the scanner will think
that it is a TrueType font file (*) and just skip over it.

Try creating a compresses sources file by evaluating:

  Smalltalk compressSources

Now restart your image (or just do Smalltalk openSourcesFiles). Your
sources file should now be a CompressedSourceStream opened on the
SqueakV50.stc file that you just created.

Check and see if the various users of CurrentReadOnlySourceFiles
have gotten any faster.


(*) It looks like this on my Linux box:

$ file *stc
SqueakV50.stc: TrueType font data

More information about the Squeak-dev mailing list