summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--releases.moxie1
-rw-r--r--src/main/java/com/gitblit/utils/JsonUtils.java1
2 files changed, 1 insertions, 1 deletions
diff --git a/releases.moxie b/releases.moxie
index 59f3ba2e..b058cc7d 100644
--- a/releases.moxie
+++ b/releases.moxie
@@ -24,6 +24,7 @@ r17: {
- Use standard ServletRequestWrapper instead of custom wrapper (issue 224)
changes:
+ - Disable Gson's pretty printing which has a huge performance gain
- Updated Polish translation
additions:
diff --git a/src/main/java/com/gitblit/utils/JsonUtils.java b/src/main/java/com/gitblit/utils/JsonUtils.java
index 24f4ecb8..e9241827 100644
--- a/src/main/java/com/gitblit/utils/JsonUtils.java
+++ b/src/main/java/com/gitblit/utils/JsonUtils.java
@@ -268,7 +268,6 @@ public class JsonUtils {
GsonBuilder builder = new GsonBuilder();
builder.registerTypeAdapter(Date.class, new GmtDateTypeAdapter());
builder.registerTypeAdapter(AccessPermission.class, new AccessPermissionTypeAdapter());
- builder.setPrettyPrinting();
if (!ArrayUtils.isEmpty(strategies)) {
builder.setExclusionStrategies(strategies);
}