: WARNING - support of the decompiler is now VERY LIMITED. There are no active developers. This means waiting times in the issue tracker are very long and mostly depend on community. Sorry for the inconvenience.

List of issuesList of issues

#151 option for caching in memory instead of temp files
Author: developer honfika
Date created:
Type: feature
Visibility: Everybody
Assigned to:
Labels: GUIPerformance
State: closed Help

Currenty the com.jpexs.decompiler.flash.helpers.Cache saves the cached objects to temp file. I checked the tempfiles, and 2200 file is about 3MB. it is unnecessary to save them to the disk. Please provide an option to disable caching to HDD. Memory caching would be faster.
admin
State: new→opened
admin
version 1.6.5 was released. This was added, try it.
State: opened→upgraded
developer
I got the following exception when switched off the caching on disk. Exception in thread "Thread-6" java.lang.NullPointerException at com.jpexs.decompiler.flash.abc.types.traits.TraitClass.convert(TraitClass.java:353) at com.jpexs.decompiler.flash.abc.types.traits.Trait.convertPackaged(Trait.java:121) at com.jpexs.decompiler.flash.gui.abc.DecompiledEditorPane.cacheScriptPack(DecompiledEditorPa ne.java:335) at com.jpexs.decompiler.flash.gui.abc.DecompiledEditorPane.getCached(DecompiledEditorPane.jav a:258) at com.jpexs.decompiler.flash.gui.abc.DecompiledEditorPane.setScript(DecompiledEditorPane.jav a:361) at com.jpexs.decompiler.flash.gui.MainFrame$27.run(MainFrame.java:2234) I tried it with multiple swf-s. The result is the same.
admin
State: upgraded→returned
admin
State: returned→opened
admin
version 1.6.5u1 was released You can guess what was wrong with following code: if (!cacheMemory.containsKey(key)) { return cacheMemory.get(key); } return null;
State: opened→upgraded
developer
:) Sorry for reopening again. It seems to work, but the cache is not really used, because of the following method: public boolean contains(Object key) { return cacheFiles.containsKey(key); } This method should check the cacheMemory, too. Currently the cache is not used whem memory cache is selected.
admin
:,-( okay
State: upgraded→returned
admin
State: returned→opened
admin
Version 1.6.6 was released. This should be fixed, try it.
State: opened→upgraded
developer
thank you, it works now.
admin
State: upgraded→closed
 
Google Translate: Translate to Czech Translate to Slovak Translate to Russian Translate to Hungarian Translate to Swedish Translate to French Translate to German Translate to Spanish Translate to Italian
Change style: oceanic classic