Skip to content

IPyPiClient response caching strategy should be improved #35

@cobya

Description

@cobya

Within microsoft/component-detection/IPyPiClient.cs at main, the current caching implementation is simply a ConcurrentDictionary that will cache all of a PyPi responses's data to be used in case the dependency is found again later. However, in repositories with large Python package lists, this has a potential to allocate more memory than can be allocated in resource constrained environments.

The caching strategy within the client should be improved so that large Python dependency graphs can be generated using less allocated memory. Potential improvements such as migrating to an Least Recently Used cache should be investigated.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions