[MIRROR] Removes 200mb of wasted memory usage (#3472)
* Merge pull request #31835 from MrStonedOne/coiax-is-fired---again Removes 200mb of wasted memory usage * Removes 200mb of wasted memory usage
This commit is contained in:
committed by
Poojawa
parent
9691c9130f
commit
7f9d13ab42
@@ -485,6 +485,7 @@
|
||||
|
||||
//Picks from the list, with some safeties, and returns the "default" arg if it fails
|
||||
#define DEFAULTPICK(L, default) ((islist(L) && length(L)) ? pick(L) : default)
|
||||
|
||||
#define LAZYINITLIST(L) if (!L) L = list()
|
||||
#define UNSETEMPTY(L) if (L && !L.len) L = null
|
||||
#define LAZYREMOVE(L, I) if(L) { L -= I; if(!L.len) { L = null; } }
|
||||
|
||||
Reference in New Issue
Block a user