News for hackers. Stuff that matters.
Re:A fun optimization trick from rsync by bayindirh on Monday October 29, 2018 @02:40PM (#18330008)
IIRC, switch statements bigger than a certain sizes are compiled to jump tables. So it's just a static jump after the code finds a working method.

In theory, it's a very cheap piece of assembly after that point.

There are no comments on this comment yet.