Skip to content

Remove excessive use of GC via system property#33

Merged
ianroberts merged 2 commits intomasterfrom
gc
Feb 8, 2024
Merged

Remove excessive use of GC via system property#33
ianroberts merged 2 commits intomasterfrom
gc

Conversation

@greenwoodma
Copy link
Contributor

Hide all explicit uses of GC in the code behind a system property. This means in normal usage there won't be a huge slow down due to the GC calls. If you want to profile memory consumption during development then set the system property com.jpetrak.gate.stringannotation.profile to a none null value.

@github-actions
Copy link

github-actions bot commented Feb 8, 2024

Test Results

12 tests  ±0   12 ✅ ±0   31s ⏱️ -11s
 4 suites ±0    0 💤 ±0 
 4 files   ±0    0 ❌ ±0 

Results for commit 131390e. ± Comparison against base commit 58f5ad6.

@greenwoodma
Copy link
Contributor Author

Just for interest the automated tests completed almost a minute faster than last time they ran!

Copy link
Member

@ianroberts ianroberts left a comment

Choose a reason for hiding this comment

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

LGTM - @johann-petrak any thoughts before we merge this?

@johann-petrak
Copy link
Collaborator

LGTM - @johann-petrak any thoughts before we merge this?

Totally fine with this! I think the whole GCing+reporting was from when I wanted to convince people that using this implementation has advantages :D

@ianroberts ianroberts merged commit 2397426 into master Feb 8, 2024
@greenwoodma greenwoodma mentioned this pull request Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants