Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR improves the speed of
read_geopkg
function, with below changes. :(It improve the
Duration
by 20% andCPU Time
by 50%)Optimized Parallel Processing.
Used
min(cpu_pool, len(layers))
to ensure we don't create more parallel jobs than layers, which avoids unnecessary overhead.Reduced Repetition:
Removed repeated code for reading layers by creating a
read_layer
function.Ensured Efficiency:
Removed unnecessary list creation and directly accessed the
table_dict
.Additions
Removals
Changes
Originally it was taking 2.47 sec
after the changes it takes 1.96 sec which is 20% improvement:
Testing
Screenshots
Notes
Todos
Checklist
Testing checklist
Target Environment support
Accessibility
Other