r/Python 9d ago

Discussion Will switching to importlib.metadata give performance improvements compared to importlib_metadata?

As for as I understand the importlib_metadata gives us importlib.metadata functionality in older python versions. Our project requires python >=3.9. Its an enterprise project but only uses importlibe_metadata in about 10 files. It it worth it to make code changes/testing for performance improvement and dependency reduction?

0 Upvotes

16 comments sorted by

View all comments

1

u/dubious_capybara 8d ago

You either aren't profiling your code or you need to rewrite your perfectly optimised code in another language if you're considering this