Skip to content

fix: use compact JSON encoding for compressed GST return log-files#4163

Draft
shubhdoshi21 wants to merge 1 commit intoresilient-tech:developfrom
shubhdoshi21:compact-json-compression
Draft

fix: use compact JSON encoding for compressed GST return log-files#4163
shubhdoshi21 wants to merge 1 commit intoresilient-tech:developfrom
shubhdoshi21:compact-json-compression

Conversation

@shubhdoshi21
Copy link
Copy Markdown
Member

Problem

get_compressed_data was calling frappe.as_json which passes indent=1 and sort_keys=True to json.dumps. This produces pretty-printed output with \n, \t, and spaces — pure whitespace overhead in every stored file.

Changes

  • Use json.dumps directly with separators=(",", ":") — eliminates all whitespace from the serialized JSON

@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant