• 0 Posts
  • 35 Comments
Joined 6 months ago
cake
Cake day: June 29th, 2024

help-circle






  • 10 years ago was 2014, not 2004.

    The samsung galaxy s5 was released at the start of 2014 with a capacitive 1080p amoled touchscreen, a quad core snapdragon 801 processor, 21h of ‘talk time’ battery, wireless charging, a fingerprint sensor, NFC, dual band 802.11ac wifi support, and emmc 5.0 storage (250 MB/s sequential read).

    New cars were mandated to have ESC in the US and the EU by 2014.

    There have definitely been many innovations since 2014, but most consumer technology upgrades have been iterative rather than innovative.





  • Probably because it’s only four bytes of data, and counting/extracting bits takes more cpu time than one AND operation.
    Most CPU’s are optimised to work with whole integers (32/64 bit) rather than individual bits.

    If memory was a serious concern you could compress it down to one byte as a ‘number of 1s’ counter at the cost of additional cpu operations, but because 3 extra bytes is such a small amount of data, this memory/time trade off isn’t worth it in most systems.

    It’d be useful if you wanted to compress some data logs or something with many subnet masks though.