Yesterday's Top Poster

Flags SDK now evaluates flags 10x faster

  • Thread starter Thread starter Dominik Ferber
  • Start date Start date
Flags SDK and Vercel Flags now evaluate multiple feature flags in bulk around 10x faster.

Flag evaluation time improved by reducing microtask queue overhead and creating far fewer promises. The improvement scales with the number of flags.

Use await evaluate([flagA, flagB]) instead of Promise.all([flagA(), flagB()]) to benefit from these optimizations:


You can also pass an object to evaluate flags with named keys. precompute() automatically benefits from these improvements as well:


Upgrade flags and @flags-sdk/vercel to the latest versions to get started. Learn more in the documentation.

Read more

Continue reading...
 
Back
Top