Closed hagenw closed 12 months ago
Closes #90
This speeds up Object.to_dict() by calling importlib_metadata.packages_distributions() only ones and caches the results.
Object.to_dict()
importlib_metadata.packages_distributions()
The benchmark shown in #90 is drastically faster now, as shown by the execution times:
measure_wo_serialization()
measure_w_serialization()
Merging #94 (38d2591) into main (d1f3dd8) will not change coverage. The diff coverage is 100.0%.
100.0%
Closes #90
This speeds up
Object.to_dict()
by callingimportlib_metadata.packages_distributions()
only ones and caches the results.The benchmark shown in #90 is drastically faster now, as shown by the execution times:
measure_wo_serialization()
measure_w_serialization()