iotile / iotile/coretools

Support caching/freezing pkg_resources entry_points

Open
#316 2 comments 0 reactions 0 assignees View on GitHub
iotile-core
Dominant language
Python
Stars
14
Forks
7
PR merge metrics
No merged PRs in 30d

Description

On some devices with sd card storage, `pkg_resources` is *very slow* since the underlying filesystem is very slow and pkg_resources does a file scan through all installed packages when you import it.

There should be a way to cache the results of this process in a single call so that we don't need to load `pkg_resources` every time a coretools based script starts and we know that the list of packages hasn't changed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.