If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : We have got a new blog where we post some interesting SWF internals info.
List of issues#151 option for caching in memory instead of temp files
Author: honfika
Date created:
Type: feature
Visibility: Everybody
Assigned to:
Labels: GUIPerformance
State: closed
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.
State: new→opened
version 1.6.5 was released. This was added, try it.
State: opened→upgraded
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.
State: upgraded→returned
State: returned→opened
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
:)
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.
:,-( okay
State: upgraded→returned
State: returned→opened
Version 1.6.6 was released.
This should be fixed, try it.
State: opened→upgraded
thank you, it works now.
State: upgraded→closed