-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Open
Labels
area/performancekind/enhancementCategorizes a PR related to an enhancementCategorizes a PR related to an enhancementteam/cloud-native
Milestone
Description
Magnitude
🟢 LOW
Consumed samples (~): 30s
Memory allocation (~): 1.3MB
Description
The themes from the META-INF/keycloak-themes.json file are parsed during the runtime. It'd be good to move it left to the build time. There's also some additional parsing of .properties.
protected void loadThemes(ClassLoader classLoader, InputStream themesInputStream) {
try {
loadThemes(classLoader, JsonSerialization.readValue(themesInputStream, ThemesRepresentation.class));
} catch (Exception e) {
throw new RuntimeException("Failed to load themes", e);
}
}Class ClasspathThemeProviderFactory.
Mitigation
Parse themes during build time and produce it to runtime (if possible)
Metadata
Metadata
Assignees
Labels
area/performancekind/enhancementCategorizes a PR related to an enhancementCategorizes a PR related to an enhancementteam/cloud-native