(big-string) Make big-string disable:able
This commit is contained in:
parent
58f2f86ea8
commit
995657c6ce
@ -1,8 +1,11 @@
|
||||
package nu.marginalia.bigstring;
|
||||
|
||||
public interface BigString {
|
||||
|
||||
boolean disableBigString = Boolean.getBoolean("bigstring.disabled");
|
||||
|
||||
static BigString encode(String stringValue) {
|
||||
if (stringValue.length() > 64) {
|
||||
if (!disableBigString && stringValue.length() > 64) {
|
||||
return new CompressedBigString(stringValue);
|
||||
}
|
||||
else {
|
||||
|
@ -29,3 +29,9 @@ These are JVM system properties used by each service
|
||||
|lexiconSizeHint| 800000000 | The default size of the lexicon |
|
||||
|local-index-path| /some/path | Selects the location the loader will write index data |
|
||||
|crawl.rootDirRewrite|/some/path|Sets the base directory of a crawl plan |
|
||||
|
||||
## Other
|
||||
|
||||
|flag| values | description |
|
||||
|---|------------|---------------------------------------------|
|
||||
|bigstring.disabled| true/false | Disables transparent big string compression |
|
2
run/env/service.env
vendored
2
run/env/service.env
vendored
@ -1,4 +1,4 @@
|
||||
WMSA_HOME=run/
|
||||
CONTROL_SERVICE_OPTS="-DdistPath=/dist"
|
||||
CONVERTER_OPTS="-ea -Xmx16G -XX:-CompactStrings -XX:+UseParallelGC -XX:GCTimeRatio=14 -XX:ParallelGCThreads=15"
|
||||
CRAWLER_OPTS="-Xmx16G -XX:+UseParallelGC -XX:GCTimeRatio=14 -XX:ParallelGCThreads=15"
|
||||
CRAWLER_OPTS="-Dbigstring.disabled=true -Xmx16G -XX:+UseParallelGC -XX:GCTimeRatio=14 -XX:ParallelGCThreads=15"
|
Loading…
Reference in New Issue
Block a user