Working on making synchronized decompilation improvements
Wrapping cfr.decompile in a new thread prevents gui stutters
still lots of uneccesary work being done
@@ -304,11 +304,13 @@ public class DecompileItem implements Item {
// require introducing a large amount of ugly boilerplate code. So
// for the sake of keeping the spaghetti down, this minor
// inefficiency is fine.
- Threads.runFx(() -> {
+ Threads.run(() -> {
String text = cfrPipe.decompile();
+ Threads.runFx(() -> {
code.clear();
code.appendText(text);
});
+ });
}
@Override
