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:#640 Optimized formatHex method for efficiency and memory usage #643

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Salman-Sayyed
Copy link

@Salman-Sayyed Salman-Sayyed commented Dec 24, 2023

Fixes #640

Refactored the formatHex method to enhance efficiency and address potential memory issues. The improvements include the use of a StringBuilder for string construction, masking the value to fit within the specified digits, calculating leading zeros, and optimizing the hex value append operation. These changes result in more memory-efficient handling of large numbers.

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.

A OOM problem was found in metadata-extractor
1 participant