question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JSON minimzer before publish on PyPI.

See original GitHub issue

I just finished working on simple json minimizer, but it’s a very dirty solution. Wee need to refactor it, because it’s works to slowly, a dead tortoise runs faster than this script.

A very important question is will compression affect the performance of the library? If will then how? Will it become faster or much slower, than now?

Example of locales with minimized data:

Locale: it Size before: 368.2 kB. Size after: 302.9 kB.


Locale: en Size before: 689.0 kB. Size after: 595.7 kB.

This can show an insignificant gain, but keep in mind that we have 32 locales, each of which has 7 files.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sobolevncommented, Sep 25, 2017

Nice job!

0reactions
lk-geimfaricommented, Sep 25, 2017

So, i’ts done!

image

python3 setup.py minify
# or
make minify

I think that is not bad result.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to minimize JSON data before publishing on PyPi?
We already created script which minify all json files in directory, but what we actually need is minimizing json files only in package...
Read more >
JSON_minify - PyPI
A simple script to minify valid JSON, containing C/C++ style comments. ... minify them before parsing or transmitting them over-the-wire. Installation
Read more >
How to Publish an Open-Source Python Package to PyPI
In this step-by-step tutorial, you'll learn how to create a Python package for your project and how to publish it to PyPI, the...
Read more >
PEP 458 – Secure PyPI downloads with signed repository ...
However, changes to PyPI consumers are not a pre-requisite for publishing the metadata from PyPI, and can be done according to the timelines...
Read more >
jsonschema - Python Package Health Analysis - Snyk
An implementation of JSON Schema validation for Python For more information about how to use ... Latest version published 8 days ago. License:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found