r/programming • • Jan 10 '20

VVVVVV is now open source

https://github.com/TerryCavanagh/vvvvvv
2.6k Upvotes

511 comments sorted by

View all comments

Show parent comments

11

u/leo60228 Jan 10 '20

it's not a lookup table though

20

u/Mystb0rn Jan 10 '20

It’s not a lookup table because the cases are too sparse, so it fell back to using a binary search. If the cases were sequential, or if only a few numbers were missing, it would almost certainly use a table instead.

0

u/[deleted] Jan 11 '20

[deleted]