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

🔧 fix: #265 remove yaml marshalling in endblock logging #897

Merged

Conversation

byte-bandit
Copy link
Contributor

@byte-bandit byte-bandit commented Jul 4, 2023

Related Github tickets

VolumeFi#265

Background

During the endblock handling, the entire message would get logged. The stringer implementation for the underlaying message type was using the yaml package for a complete string marshalling, which resulted in a large amount of overhead.

Logging the entire message in byte code not only take quite a long time due to marshalling, it's also largely irrelevant, as message information can easily be obtained from the queue.

Testing completed

  • a list of actions that you've performed to ensure that this PR works as intended

Breaking changes

  • I have checked my code for breaking changes
  • If there are breaking changes, there is a supporting migration.

Logging the entire message in byte code not only take quite a long
time due to marshalling, it's also largely irrelevant, as message
information can easily be obtained from the queue.
@byte-bandit byte-bandit self-assigned this Jul 4, 2023
Copy link
Contributor

@taariq taariq left a comment

Choose a reason for hiding this comment

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

Let's get it out!

@byte-bandit byte-bandit merged commit 7f50ebb into palomachain:master Jul 5, 2023
1 check passed
@byte-bandit byte-bandit deleted the clohr/endblock-marshalling branch July 5, 2023 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants