Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[persistence] improve building the ItemHistoryDTO #4194

Merged
merged 1 commit into from
Apr 21, 2024

Conversation

joerg1985
Copy link
Contributor

This PR will improve throughput and memory consumption while building the ItemHistoryDTO by:

  • removing not needed auto-boxing of a field
  • apply the diagonal lines workaround only when needed
  • ensure the internal cache of BigDecimal.toString is hit and the BigDecimal is not rebuilded (relevant since PR #16379 reuses the State)

Signed-off-by: Jörg Sautter <joerg.sautter@gmx.net>
@joerg1985 joerg1985 requested a review from a team as a code owner April 21, 2024 17:50
Copy link
Member

@J-N-K J-N-K left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM!

@J-N-K J-N-K added the enhancement An enhancement or new feature of the Core label Apr 21, 2024
@J-N-K J-N-K added this to the 4.2 milestone Apr 21, 2024
@J-N-K J-N-K merged commit ba463dd into openhab:main Apr 21, 2024
5 checks passed
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/openhab-4-2-milestone-discussion/154316/122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature of the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants