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

feat: improve logging system to filter markers #1270

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

HashEngineering
Copy link
Collaborator

@HashEngineering HashEngineering commented Mar 13, 2024

Issue being fixed or feature implemented

Add log marker filers. Marked logs are by default ignored.
Improve CoinJoin speed by up to 50%

Related PR's and Dependencies

dashpay/dashj#248

Screenshots / Videos

How Has This Been Tested?

  • QA (Mobile Team)

Checklist:

  • I have performed a self-review of my own code and added comments where necessary
  • I have added or updated relevant unit/integration/functional/e2e tests

@HashEngineering HashEngineering self-assigned this Mar 13, 2024
Comment on lines +581 to +582
final LogMarkerFilter markerFilter = new LogMarkerFilter();

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This will ignore all log entries that are marked because nothing is supplied to the constructor. Later we may enable some markers in debug builds.

@HashEngineering HashEngineering requested a review from Syn-McJ March 18, 2024 19:16
Comment on lines -123 to +124
const val DEFAULT_SESSIONS = 4
const val DEFAULT_SESSIONS = 6
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was the only speed related changed in this PR.

Copy link
Member

@Syn-McJ Syn-McJ left a comment

Choose a reason for hiding this comment

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

Looks good

@HashEngineering HashEngineering merged commit e89bf41 into dashpay Mar 19, 2024
2 checks passed
@HashEngineering HashEngineering deleted the dashpay-improve-speed-logging branch April 30, 2024 13:43
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.

2 participants