bridgecrewio / prisma-cloud-jetbrains-ide

The Prisma cloud Plugin for Intellij enables developers to get real-time scan results, as well as inline fix suggestions as they develop cloud infrastructure.
Apache License 2.0
1 stars 0 forks source link

[BCE-31829] - Fix high CPU issue #111

Closed AdamDev closed 5 months ago

AdamDev commented 6 months ago

The plugin results in high CPU usage without even invoking a scan. The underlying issue originates from the SeverityFilterButton component, where the state changes occur inside the rendering function. This state modification causes the rendering function to be executed repeatedly, leading to an infinite loop. The resolution involves avoiding any modifications to the state during the rendering process.

CPU Before: 150 CPU After: 10