Coming soon! A Pro version of the Flipper gem for entirely local installations.

Get Updates

Blog

Flipper 0.26.1 and 0.26.2 ๐Ÿ’จ๐Ÿ’จ๐Ÿ’จ

ยท John Nunemaker ยท 2 min read

Hello beautiful feature flagger!

I have two fantastical releases for you today (it's a buy one get one free kind of day).

@bkeepers and I spent a little time working on performance and we are pumped with the result. We're dubbing this release "Ricky Bobby".

I'm a believer in leading with the heat, so let's go out of order start with the biggest improvements.

Flipper.enabled?

The hot path for Flipper is reads and that means Flipper.enabled?. So we started there with a couple of scripts guiding our way like a wise old mentor.

First we used benchmark/enabled_ips.rb to get a baseline. Then we used enable_profile.rb to figure out what was the biggest culprit.

We rinsed and repeated this for a couple hours and by the end Flipper.enabled? with an actor was 55% faster and without an actor was 37% faster. Not a bad mornings work!

Simply update to 0.26.1 and you'll get this performance improvement for free.

Active Record Adapter

If you're using the ActiveRecord adapter (let's face it we are all lazy and doing this), then hang around. You'll want to update to 0.26.2. I switched the AR adapter from using model's directly to pluck. That's it.

For people using thousands of gates (some do, they are still welcome here), this will be huge. I tested the AR adapter improvement with 2k gates and saw > 8x improvement in iterations per second. More gates == more improvement for you.

Other Stuff

To round out these two releases, we have a couple minor improvements that are also sweet.

  • Make Memory adapter threadsafe (PRs here and here)
  • ActiveRecord adapter: wrap all reads/writes in with_connection (PR)
  • Improve performance of background polling (PR)

Hope you flipping enjoyed reading this as much as we enjoyed the work involved in these releases! Go forth and flip faster.

Ready to try it out?

Get audit history, rollbacks, advanced permissions, analytics, and all of your projects in one place.


Prefer our Cloudless option?

You can choose from several tiers to sponsor Flipper on GitHub and get some great benefits!

The Friday Deploy

News and open source releases for all things Flipper. Unsubscribe anytime.

Have questions? Need help?

Email us any time or head on over to our documentation or status page for the latest on the app or API.

Ready to take Flipper for a swim?

No credit card required. 14-day free trial. And customer support directly from the developers.