milvus/pkg/config
congqixia 86e347a1a4
enhance: [2.3] Cache formatted key for param item (#31388) (#31402)
Cherry-pick from master
pr: #31388 
See also #30806

`formatKey` may cost lots of CPU on string processing under high QPS
scenario, this PR adds a formattedKeys cache preventing string operation
in each param get value.

---------

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2024-03-19 19:25:10 +08:00
..
config.go enhance: [2.3] Cache formatted key for param item (#31388) (#31402) 2024-03-19 19:25:10 +08:00
config_test.go Check error by Error() and NoError() for better report message (#24736) 2023-06-08 15:36:36 +08:00
env_source.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
etcd_source.go enhance: Change some frequency log to rated level (#29720) (#29903) 2024-01-12 11:46:52 +08:00
event.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
event_dispatcher.go fix: [cherry-pick] protect EventDispatcher map with mutex (#28540) (#28555) 2023-11-19 12:56:20 +08:00
event_dispatcher_test.go fix: [cherry-pick] protect EventDispatcher map with mutex (#28540) (#28555) 2023-11-19 12:56:20 +08:00
file_source.go fix: dead lock while getting configs (#30319) 2024-01-26 20:15:01 +08:00
manager.go fix: Remove Unnecessary lock in config manager (#29855) 2024-01-11 15:01:01 +08:00
manager_test.go fix: Remove Unnecessary lock in config manager (#29855) 2024-01-11 15:01:01 +08:00
refresher.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
source.go Format the code (#27275) 2023-09-21 09:45:27 +08:00
source_test.go fix: dead lock while getting configs (#30319) 2024-01-26 20:15:01 +08:00