The simplest change for performance even in Python, JavaScript, etc is to avoid the modulo function.<p>All of the top contenders on <a href="https://codegolf.stackexchange.com/questions/215216/high-throughput-fizz-buzz/" rel="nofollow">https://codegolf.stackexchange.com/questions/215216/high-thr...</a> do exactly this.<p>Yes there is a lot of optimization specific to languages, OS, CPU... but the takeaway for me isn't that you have to go that extent to build an order of magnitude improvement, you can still achieve many order of magnitudes of improvement by understanding what is happening when you use something like the modulo function and that if you have requirements where you can avoid using it then that's the win.<p>For FizzBuzz you are told it "iterates from 1 to <some number>"... and modulo would be perfect for "take a single number and produce Fizz, Buzz or FizzBuzz if it's divisable by 3, 5, or both 3 and 5"... but as we're iterating, counters are better suited to the task.<p>I love seeing epic code golf (and the solution outlined in the article is it), but the takeaway for the majority of engineers is that significant improvements can be made with a readable and maintainable solution just by understanding the requirements and comp sci fundamentals.