[Webkit-unassigned] [Bug 209314] New: Reconsider WTF:KB, WTF::MB, WTF::GB
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Mar 19 15:24:44 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=209314
Bug ID: 209314
Summary: Reconsider WTF:KB, WTF::MB, WTF::GB
Product: WebKit
Version: WebKit Nightly Build
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: Web Template Framework
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at gnome.org
We have, in StdLibExtras.h:
static constexpr size_t KB = 1024;
static constexpr size_t MB = 1024 * 1024;
static constexpr size_t GB = 1024 * 1024 * 1024;
That's actually KiB, MiB, and GiB. We should call them KiB, MiB, and GiB, not KB, MB, GB. KB would be 1000 (10^3). MB would be 10^4. GB would be 10^5.
This isn't pedantic, it's something that's important to be precise about since there's a big difference between the units. It can be extremely confusing when precision is required and the units are not as expected.
E.g.:
https://duckduckgo.com/?q=500+GB+to+GiB&ia=answer
https://en.wikipedia.org/wiki/Orders_of_magnitude_(data)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200319/198b9025/attachment.htm>
More information about the webkit-unassigned
mailing list