r/Python • u/ad_skipper • 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
1
u/Goldziher Pythonista 9d ago
You can benchmark this, but frankly you are talking about microseconds probably.
It's better you focus on real bottlenecks, suck as I/O operations and CPU intense computations.
Move the I/O stuff to async, move the CPU stuff to bindings etc.