Problem
Functions load_network_delay_config(), load_local_inference_config(), and load_verbose_config() each open and parse settings.yaml. This happens per request.
Impact
- Unnecessary CPU and I/O overhead per request.
Proposed Fix
- Load
settings.yaml once at server startup (module level or in RequestHandler.__init__) and reuse the config dict.
- If dynamic reload is needed, implement a SIGHUP handler or admin endpoint.
Files: src/server/communication/request_handler.py Labels: performance
Problem
Functions
load_network_delay_config(),load_local_inference_config(), andload_verbose_config()each open and parsesettings.yaml. This happens per request.Impact
Proposed Fix
settings.yamlonce at server startup (module level or inRequestHandler.__init__) and reuse the config dict.Files:
src/server/communication/request_handler.pyLabels:performance