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

refactor: simplify map file reading (removed tree nodes) #1467

Merged
merged 7 commits into from
Aug 21, 2023
Merged

refactor: simplify map file reading (removed tree nodes) #1467

merged 7 commits into from
Aug 21, 2023

Conversation

mehah
Copy link
Contributor

@mehah mehah commented Aug 21, 2023

Map loading has been completely overhauled, resulting in a substantial improvement in read time by approximately 35~50%. The previous implementation was inefficiently allocating memory due to the 'tree' structure created by OTB::Loader. This update eliminates that issue, streamlining the memory usage and enhancing the overall performance of the map loading process.

The changes lead to a more straightforward and maintainable codebase, making it easier to understand and modify in the future. By removing unnecessary complexity, this refactor enhances the efficiency of the file reading process and aligns with best practices for clean and concise code.

@dudantas dudantas changed the title refactor: Map Loader refactor: simplify map file reading (removed three nodes) Aug 21, 2023
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 10 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@dudantas dudantas left a comment

Choose a reason for hiding this comment

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

Very good, global map:
image

From 8-10 seconds to 4-5 seconds.

@dudantas dudantas changed the title refactor: simplify map file reading (removed three nodes) refactor: simplify map file reading (removed tree nodes) Aug 21, 2023
@dudantas dudantas merged commit c5993ad into opentibiabr:main Aug 21, 2023
@mehah mehah deleted the refactor-map-loader branch August 24, 2023 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants