diff options
author | James Moger <james.moger@gitblit.com> | 2013-04-10 07:46:32 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-04-10 07:46:32 -0400 |
commit | e57f4c85dbe0ee04665e43ce33c71f8581935bed (patch) | |
tree | cf6cadcb0f1f32ae106ed57eef21db0f3100e16a | |
parent | 35ae57001180bc67b66a4ebc67007a75e1c470f5 (diff) | |
download | gitblit-e57f4c85dbe0ee04665e43ce33c71f8581935bed.tar.gz gitblit-e57f4c85dbe0ee04665e43ce33c71f8581935bed.zip |
Disable Gson pretty printing
-rw-r--r-- | releases.moxie | 1 | ||||
-rw-r--r-- | src/main/java/com/gitblit/utils/JsonUtils.java | 1 |
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);
}
|