Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hnesk
Copy link
Contributor

@hnesk hnesk commented Jun 23, 2022

A first attempt to get rid of pkg_resources as mentioned in #881
I did not measure anything yet, and subjectively not much changed, but we'll see.

Copy link
Member

@kba kba left a comment

Choose a reason for hiding this comment

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

Even if performance gain is yet to be proven, I see no reason why it would degrade performance either, so LGTM, thanks for following up on the discussion.

@kba kba linked an issue Jun 24, 2022 that may be closed by this pull request
@hnesk hnesk changed the title WIP: No more pkg_resources No more pkg_resources Jul 18, 2022
@hnesk
Copy link
Contributor Author

hnesk commented Jul 18, 2022

I just removed the WIP label, as the implementation is finished. The performance improvement is neglible, as far as I could interpret the profiler, the startup time is spent mostly on importing modules, and I have no clue how to improve on that.
At least it adapted the code to not use discouraged features any more.

@kba kba merged commit 9a54ef6 into OCR-D:master Jul 18, 2022
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.

Investigate startup speedup by replacing pkg_resources

2 participants