-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gui): disk code cache and search rewrite (PR #1483)
* feat: implement disk code cache * feat: rewrite code metadata handling, remove code index * feat: rewrite search * fix: code cleanup and fixes for previous commits * feat: run code search in parallel * fix: reset code strings cache on low memory, code cleanup * fix: include input files timestamp into code hash
- Loading branch information
Showing
166 changed files
with
4,393 additions
and
2,902 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,5 @@ jadx-output/ | |
*.orig | ||
quark.json | ||
|
||
cliff.toml | ||
cliff.toml | ||
jadx-gui/src/main/resources/logback.xml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
package jadx.api; | ||
|
||
import java.io.Closeable; | ||
|
||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
public interface ICodeCache { | ||
public interface ICodeCache extends Closeable { | ||
|
||
void add(String clsFullName, ICodeInfo codeInfo); | ||
|
||
void remove(String clsFullName); | ||
|
||
@Nullable | ||
@NotNull | ||
ICodeInfo get(String clsFullName); | ||
|
||
@Nullable | ||
String getCode(String clsFullName); | ||
|
||
boolean contains(String clsFullName); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
package jadx.api; | ||
|
||
import java.util.Map; | ||
|
||
import jadx.api.impl.SimpleCodeInfo; | ||
import jadx.api.metadata.ICodeMetadata; | ||
|
||
public interface ICodeInfo { | ||
|
||
ICodeInfo EMPTY = new SimpleCodeInfo(""); | ||
|
||
String getCodeStr(); | ||
|
||
Map<Integer, Integer> getLineMapping(); | ||
ICodeMetadata getCodeMetadata(); | ||
|
||
Map<CodePosition, Object> getAnnotations(); | ||
boolean hasMetadata(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.