Framework icon indicating copy to clipboard operation
Framework copied to clipboard

Memory leak on every extDB result

Open dedmen opened this issue 7 years ago • 2 comments

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: https://github.com/AsYetUntitled/Framework/blob/dc9eeb5eecc410d5205780d864fab6440b6ef1ca/life_hc/MySQL/General/fn_asyncCall.sqf#L47 https://github.com/AsYetUntitled/Framework/blob/dc9eeb5eecc410d5205780d864fab6440b6ef1ca/life_server/Functions/MySQL/fn_asyncCall.sqf#L47 https://github.com/AsYetUntitled/Framework/blob/dc9eeb5eecc410d5205780d864fab6440b6ef1ca/life_hc/MySQL/General/fn_queryRequest.sqf#L52

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

dedmen avatar Dec 22 '18 22:12 dedmen

This is fixed in the latest version of arma 3 =)

jbdevic avatar Mar 11 '19 21:03 jbdevic

Yep. Now you only have the performance impact left.

dedmen avatar Mar 12 '19 07:03 dedmen