Thursday, December 14, 2017

#1 2017-08-29 02:52:11 am

alastor933
Member
From:: Utrecht, NL
Registered: 2008-09-12
Posts: 544

What makes applets swell up?

A few days ago I noticed an applet with a size of over 16 Mb.
I recompiled it (400K) and it works fine.

Just now I saw another applet bloated to 5 Mb.

What's going on?

Offline

 

#2 2017-08-29 03:06:46 am

Nigel Garvey
Moderator
From:: Warwickshire, England
Registered: 2002-11-20
Posts: 4453

Re: What makes applets swell up?

Hi.

It's possibly the values of properties, globals, and run-handler variables, which persist (ie. are stored back into the script file) after the script's run.


NG

Online

 

#3 2017-08-29 06:50:59 am

DJ Bazzie Wazzie
Member
From:: the Netherlands
Registered: 2004-10-20
Posts: 2727
Website

Re: What makes applets swell up?

As Nigel mentioned it's persistent values who are never deleted and are overwritten, pretty much like memory leaks but in it's resources. To avoid it you could use instantiated objects instead of class objects if the data doesn't need to be persistent between each run but only need properties for its scope and inheritance.

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)