Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: try to speed up pixi global list #2609

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wolfv
Copy link
Member

@wolfv wolfv commented Dec 2, 2024

I tried to speed up pixi global list. My first attempt was to not load all the prefix records, and instead infer name / version / build string from the ".json" filenames in conda-meta.

However, this is not the only place where we are loading the PrefixRecords. We are also loading them to validate that environments are in sync. That now takes up the majority (>80%) of the time of pixi global list.

Short term: we should also have a "fast-in-sync" function that does not require loading all prefix records.

Long term: we should serialize PrefixRecords as msgpack and make parsing them really, really fast as this is slowing pixi down in multiple places (e.g. pixi run, ...).

@wolfv wolfv changed the title try to speed up pixi global list feat: try to speed up pixi global list Dec 2, 2024
@wolfv wolfv mentioned this pull request Dec 2, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant