Optimize Python performance - manateelazycat/lsp-bridge GitHub Wiki
- Enable the profiler option: (setq lsp-bridge-enable-profile t)
- Restart lsp-bridge:
lsp-bridge-restart-process
- Write the code normally and complete the operation, the longer the better
- Output profiling log:
lsp-bridge-profile-dump
- Install snakeviz: sudo pip3 install snakeviz
- Show performance bottlenecks: snakeviz ~/lsp-bridge.prof