• Here are all articles tagged Optimizations
  • Rendering 12,000 Image Albums at Imgur

    Posted on September 14th, 2015 | Tags: Optimizations, JavaScript, React, jQuery, Imgur

    Today marks a great day for wallpaper enthusiasts everywhere. Today's the day a newly designed Imgur launches, and with it comes some great performance improvements. My favorite is our new way to load giant albums without ridiculous lag. To put this new algorithm to the test I'm going to compare the perceived load speed of this 12,000 image album to what was previously on the site.

    TL;DR

    • Utilized React.js more
    • Only render DOM elements that are in the viewport buffer zone
    • Saw FPS …

    read more

  • Bit Level Manipulation

    Posted on April 6th, 2013 | Tags: Optimizations

    Bit level manipulation allows us to write more efficient code due to the fact that CPU's are really good at handling bits. In fact that's all they really do. Even if you've never played around with bit manipulation it's likely that your compiler has modified your code to use bit manipulation.

    Finding Odd AND Even Numbers

    At some point everyone's probably written some code to this effect:

    def odd_or_even(number):
        if number % 2 == 0:
            return "Even"
        return "Odd"
    

    However, as we all …

    read more

  • Speeding Up Your Python Code

    Posted on March 16th, 2013 | Tags: Optimizations

    In my opinion the Python community is split into 3 groups. There's the Python 2.x group, the 3.x group, and the PyPy group. The schism basically boils down to library compatibility issues and speed. This post is going to focus on some general code optimization tricks as well as breaking out into C to for significant performance improvements. I'll also show the run times of the 3 major python groups. My goal isn't to prove one better than the other, just to give …

    read more