Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add option to disable printing out readable size and time values #3432
When we generate responses, mainly in cluster monitoring apis, we currently print time and size values twice, in two formats: the raw number and the readable format. Although the readable version is easy to read for human beings, it generates a lot of garbage in memory, which is something that we want to disable if not needed.
Let's then add support for a new "readable_format" parameter that allows to control whether we want to print out the readable version or not.
The plan is to keep it backward compatible on 0.90 (the default value will be true , meaning that readable values will be printed out by default). As of 1.0 we'll change the default to false, therefore in order to have readable values printed out you'll need to explicitly ask for them.
referenced this issue
Aug 2, 2013
To follow up the above, here's some samples
master with human=true
master with human=false