ra’s avatarra’s Twitter Archive—№ 32,803

  1. …in reply to @mcclure111
    @mcclure111 it depends on how tightly packed the labels are, not sure at what point total number becomes an issue
    1. …in reply to @ra
      @mcclure111 compilers will emit a jump table if possible which should be constant time, but i've seen the C# compiler emit if/else for sparse labels