megachangelog
Improvement

Flags SDK now evaluates flags 10x faster

The Flags SDK dramatically improved flag evaluation performance by 10x through reduced microtask queue overhead and fewer promise creations. Users should upgrade to the latest version and use the new evaluate() method with bulk flag evaluation to benefit from these optimizations.

and now evaluate multiple feature flags in bulk around 10x faster. Flags SDKVercel Flags

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

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

You can also pass an object to evaluate flags with named keys

automatically benefits from these improvements as well.precompute()

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

Read more

flagsperformancesdkoptimization

Source: original entry ↗