continue-custom/extensions/intellij
houssemzaier dc0e86e4a1 perf(intellij): implement GsonService singleton to reduce memory allocation
Replace 31+ scattered Gson() instantiations with a centralized application-level
GsonService singleton. This eliminates redundant object creation, particularly in
hot message handling paths (28 instances in IdeProtocolClient alone).

Changes:
- Created GsonService as application-scoped singleton (@Service annotation)
- Updated IdeProtocolClient to use GsonService via default constructor parameter
- Updated CoreMessenger to use GsonService via default constructor parameter
- Updated ContinueBrowser to use GsonService via default constructor parameter

Performance impact:
- Eliminates 31+ Gson object allocations per session
- Reduces reflection overhead from repeated Gson initialization
- Improves message handling performance in IDE-Core communication

Addresses: #8452
2025-11-04 09:18:36 +01:00
..
.run test: use intellij-ide-starter for e2e tests (#7690) 2025-09-19 12:54:25 -07:00
gradle/wrapper fix: Add file tests + migrate to IntelliJ Platform Gradle Plugin v2 2025-07-28 20:39:44 +02:00
src perf(intellij): implement GsonService singleton to reduce memory allocation 2025-11-04 09:18:36 +01:00
testdata/rename Squash commits for JB integration testing 2024-12-17 09:12:33 -08:00
.gitignore test: use intellij-ide-starter for e2e tests (#7690) 2025-09-19 12:54:25 -07:00
build.gradle.kts test: use intellij-ide-starter for e2e tests (#7690) 2025-09-19 12:54:25 -07:00
CONTRIBUTING.md test: use intellij-ide-starter for e2e tests (#7690) 2025-09-19 12:54:25 -07:00
gradle.properties chore: prerelease bumps (#8440) 2025-10-25 19:13:00 -07:00
gradlew fix: Add file tests + migrate to IntelliJ Platform Gradle Plugin v2 2025-07-28 20:39:44 +02:00
gradlew.bat ✨ merge preview to main (#575) 2023-10-22 19:34:44 -07:00
package-lock.json chore: update JB docs and devex 2024-10-16 16:08:14 -07:00
qodana.yml ✨ merge preview to main (#575) 2023-10-22 19:34:44 -07:00
README.md docs: Update VS Code README for agents (#8574) 2025-11-03 18:33:51 -08:00
rules.md feat: rebrand assistants as agents (#7227) 2025-08-18 16:25:30 -07:00
settings.gradle.kts ✨ merge preview to main (#575) 2023-10-22 19:34:44 -07:00

Continue

Ship faster with Continuous AI

The future of coding isn't writing more code. It's delegating the boring parts, so you can build the interesting stuff

Get started in Mission Control, CLI (Headless Mode), or CLI (TUI mode)

Agent

Agent to work on development tasks together with AI

Chat

Chat to ask general questions and clarify code sections

Edit

Edit to modify a code section without leaving your current file

Autocomplete

Autocomplete to receive inline code suggestions as you type

License

Apache 2.0 © 2023-2025 Continue Dev, Inc.