Skip to content

Memory leak on every extDB result #511

Open
@dedmen

Description

@dedmen

I have just discovered that Arma has a cache for compile/compileFinal. Every string that you compile and it's resulting code is being cached, indefinetely till you exit the game.

Things like this:

_queryResult = call compile _queryResult;

_queryResult = call compile _queryResult;

if (_new isEqualType "") then {_new = call compile format ["%1", _new];};

Are essentially a memory leak. Every query result is kept in memory.

Workaround would be parseSimpleArray.

Game version: 1.88

There is a video that illustrates the issue here: https://feedback.bistudio.com/T135718

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions