open-feature/flagd

[FEATURE] Improve evaluation performance

开放

#1,453 创建于 2024年11月20日

 (8 条评论) (1 个反应) (1 位负责人)Go (118 个派生)github user discovery
enhancementgood first issuehelp wanted

仓库指标

星标
 (925 个星标)
PR 合并指标
 (平均合并 3天 9小时) (30 天内合并 8 个 PR)

描述

Overview

The flag evaluation engine in flagd leverages JsonLogic to provide a powerful and flexible rule-based serializable logic. The flagd binary and in-process Go flagd provider use this library. To improve flag evaluation performance and reduce computational overhead, the ruleset should be pre-decoded when a flag set is loaded (or updated). This removes the need to parse the JsonLogic structure for each evaluation.

### Tasks
- [ ] [Add support for pre-decoded rules in the Go JsonLogic SDK](https://github.com/diegoholiveira/jsonlogic/issues/88).
- [ ] Update flagd to use the pre-decoded rules.
- [ ] 🥇 Bonus points for running a performance test to measure the improvements

This should be a non-breaking change in the Go JsonLogic SDK.

贡献者指南