-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Unfortunately, the current implementation of CT+ (the tool that recommends energy-efficient Java collection types) does not support dependency injection patterns and therefore it is unsuitable to be used in the context of JAX-RS applications. For example, many micro-services a.k.a. self contained systems in the wild may rely on following class/dependency injection structure.
As CT+ is unable to analyze these patterns, a great potential of energy savings is being left untapped.
Our company creates many HTTP backends that rely on such patterns and based on some internal testing there is a lot of potential to reduce the energy consumption of GET list resources (you find some list resource demonstration here). For example, it could make a difference if the JSON serializer iterates over a FastList or ArrayList to generate JSON.
This issue is a tracking issue for collecting ideas and PRs to provide support for analyzing dependency-injection-based JAX-RS applications through the SonarQube plugin.
