mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 13:09:00 +00:00
Re-introduce monkey patched GSON to make converter run better.
fixup! Re-introduce monkey patched GSON to make converter run better. fixup! Re-introduce monkey patched GSON to make converter run better.
This commit is contained in:
parent
d1a004bea6
commit
266ad2e4de
@ -11,6 +11,9 @@ java {
|
||||
}
|
||||
}
|
||||
dependencies {
|
||||
|
||||
implementation project(':third-party:monkey-patch-gson')
|
||||
|
||||
implementation project(':code:common:model')
|
||||
implementation project(':code:api:index-api')
|
||||
implementation project(':code:common:service-discovery')
|
||||
|
@ -19,6 +19,9 @@ application {
|
||||
tasks.distZip.enabled = false
|
||||
|
||||
dependencies {
|
||||
|
||||
implementation project(':third-party:monkey-patch-gson')
|
||||
|
||||
implementation project(':code:common:process')
|
||||
|
||||
implementation project(':third-party:porterstemmer')
|
||||
|
@ -75,6 +75,7 @@ include 'third-party:uppend'
|
||||
include 'third-party:openzim'
|
||||
include 'third-party:count-min-sketch'
|
||||
include 'third-party:monkey-patch-opennlp'
|
||||
include 'third-party:monkey-patch-gson'
|
||||
|
||||
|
||||
dependencyResolutionManagement {
|
||||
|
1
third-party/README.md
vendored
1
third-party/README.md
vendored
@ -17,3 +17,4 @@ or lack an artifact, or to override some default that is inappropriate for the t
|
||||
|
||||
### Monkey Patched
|
||||
* [Stanford OpenNLP](monkey-patch-opennlp/) - Apache-2.0
|
||||
* [GSON](monkey-patch-gson/) - Apache-2.0
|
17
third-party/monkey-patch-gson/build.gradle
vendored
Normal file
17
third-party/monkey-patch-gson/build.gradle
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation libs.bundles.gson
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
13
third-party/monkey-patch-gson/readme.md
vendored
Normal file
13
third-party/monkey-patch-gson/readme.md
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
# Monkey Patched GSON
|
||||
|
||||
Stanford OpenNLP - Apache-2.0
|
||||
|
||||
## Rationale
|
||||
|
||||
GSON makes some assumptions that make it not work very well
|
||||
for deserializing extremely large JSON objects. This patch
|
||||
makes the code technically leak memory, but the way it's used
|
||||
makes this not much of a problem.
|
||||
|
||||
It should only be applied to the converter or possibly
|
||||
loader processes, not the services.
|
1653
third-party/monkey-patch-gson/src/main/java/com/google/gson/stream/JsonReader.java
vendored
Normal file
1653
third-party/monkey-patch-gson/src/main/java/com/google/gson/stream/JsonReader.java
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user