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

Various bug fixes, updates and optimizations. #18

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

e-nexus
Copy link

@e-nexus e-nexus commented Nov 24, 2023

No description provided.

e-nexus and others added 24 commits September 3, 2023 09:46
- Reuse CDataStream objects inside the block index loading loop to minimize dynamic memory allocations.
- Clear and reserve CDataStream buffers before writing to them, reducing the need for buffer resizing.
- Restrict the try-catch block scope to only the deserialization process to decrease exception handling overhead.
- Display results
Replaced push_back with emplace_back for direct in-place construction of CDNSSeedData objects.
Optimizes the addition of seed nodes by eliminating unnecessary copy or move operations.
Commit updates from GUI branch
Upgraded limitedmap using C++11 features: switched to emplace for efficient in-place construction, adopted auto for type inference, added assert for size validation, and optimized erase and update methods.
1. `Insert` and `Remove` Methods:
   - Streamlined conditional logic for improved clarity and performance.
   - Enhanced memory management to ensure efficient node handling.

2. `TraverseLeft` and `TraverseRight` Methods:
   - Optimized traversal logic to reduce redundant calculations.
   - Implemented sorting and uniqueness checks to improve list operations.
   - Enhanced error handling and input validation.

3. `Prove` Method:
   - Introduced robust error checking for edge cases.
   - Optimized list handling by removing duplicates and streamlining removal operations.
   - Refined logical flow to enhance performance.

4. `Find` Method:
   - Simplified branching logic to reduce code redundancy.
Use seperate sets for tx inputs & outputs in duplicate checks to avoid false positives.
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.

1 participant