Is it worthwhile to explicitly write Integers as bits in Swift? -


i learned how binary numbering system works (how write integers in bits), , wondering if worthwhile thing include in software. performance big me, , know writing integers in bits faster not. i'm wondering how faster. i'm not asking number on scale, want know if subtle difference, maybe 0.1 second quicker calculation, or if more noticeable, such 1 second quicker.

just thinking readability , safety of code explicitly written integers in bits sounds mess waiting happen, want know if tradeoff worth me.

i know bit of loose question have stated, let me try , improve here:

will performance have noticeable change if store integers explicitly using bits? (i consider "noticeable change" on 0.5 seconds quicker)

i'd have thought came '70s (like me) when "performance" equated "paging", "core memory", "megahertz", , like. prefaced things "i learned...". here's should matter you:

  • what ios/macos version targeting baseline?
  • is app graphically intensive? , if so, have "handed off" can gpu?
  • are efficiently using both threading , asynchronous calls? specifically, accessing "cloud" and/or database might using properly?

there's many more questions should consider before how "write integers bits", if drift, shouldn't concerned such thing. (and sure, graphics using gpu instead of cpu "kinda sorta" asking.

last question, maybe important one: have tried - @ related concerns , relevant app working on - on actual device? (be iphone 5 or macbook air.) i'm betting won't have concerns performance between how integer stored @ bit level.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -