JuliaLang/julia — comment on commit d37b9df05c8a216dd7fbae7b1519c01191356561
File:  line 0
By StefanKarpinski:

I think there's some value to being able to generate the absolute tersest human-readable ASCII representation of data. Saving a byte for every value adds up for large amounts of data. I'm going to leave it. Are you talking about merging all of these into a single function that contains the call to the grisu library? If so, that's a non-starter because I'm going to have to write a fair number of these to implement printf formatting and there's no way they're all going to be one huge function with a bazillion options. Once it all works, I can figure out how to avoid the `ASCIIString` allocation and substring copy. The most obvious thing would be for all of them to share a byte buffer and just have the core call return how many digits there are (which is what it actually returns). On the printing side, I need to expose a write method for printing part of a byte array without having to create a subarray copy.