summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-04-10 07:46:32 -0400
committerJames Moger <james.moger@gitblit.com>2013-04-10 07:46:32 -0400
commite57f4c85dbe0ee04665e43ce33c71f8581935bed (patch)
treecf6cadcb0f1f32ae106ed57eef21db0f3100e16a
parent35ae57001180bc67b66a4ebc67007a75e1c470f5 (diff)
downloadgitblit-e57f4c85dbe0ee04665e43ce33c71f8581935bed.tar.gz
gitblit-e57f4c85dbe0ee04665e43ce33c71f8581935bed.zip
Disable Gson pretty printing
-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);
}