spring-projects / spring-projects/spring-boot

Improve performance of SpringIterableConfigurationPropertySource with large numbers of properties

Open
#28,723 14 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

theme: performance type: enhancement
Dominant language
Java
Stars
81.5k
Forks
42.7k
Avg merge
2d 4h
Merged PRs (30d)
65

Description

Running a project with >10k external properties.

It seems that Spring is taking a long time with processing all property binding, and also contains a deep stack.

I'm not sure how to proceed further with this or optimize, or if this is simply that needs to be worked on from a performance point.

image

Flight recording attached.

flight-record.zip

Spring boot 2.3.12

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with SpringIterableConfigurationPropertySource and reproduce the report using more than 10k external properties on Spring Boot 2.3.12. Inspect the attached flight recording and use the reported deep stack as the first performance lead. The issue does not name a file, test, or concrete completion criterion, so the expected optimization still needs to be established.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.