#1205: shape cache needs less memory

This commit is contained in:
honfika@gmail.com
2016-03-17 15:42:44 +01:00
parent c648565eb9
commit ecd038e50b
2 changed files with 14 additions and 12 deletions

View File

@@ -2497,6 +2497,12 @@ public final class SWF implements SWFContainerItem, Timelined {
}
}
public static void clearAllStaticCache() {
Cache.clearAll();
Helper.clearShapeCache();
System.gc();
}
public void clearAllCache() {
characters = null;
characterIdTags = null;
@@ -2505,9 +2511,7 @@ public final class SWF implements SWFContainerItem, Timelined {
clearReadOnlyListCache();
clearImageCache();
clearScriptCache();
Cache.clearAll();
Helper.clearShapeCache();
System.gc();
clearAllStaticCache();
}
public static void uncache(ASMSource src) {