Jump to content




Table of booleans vs number


  • You cannot reply to this topic
2 replies to this topic

#1 Konlab

  • Members
  • 595 posts
  • LocationKerbin

Posted 18 October 2015 - 08:13 AM

Using a table of booleans like an int type is faster or using numbers is faster?
(Execution time)

#2 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 18 October 2015 - 08:35 AM

What exactly do you mean?
How do you use a tale of bools like an int?
I think using numbers is faster.

#3 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 18 October 2015 - 08:54 AM

A number-type would be considerably faster than a table populated with booleans for every use case I can think of where you'd want to represent ints. It'd consume less RAM, too.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users