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

Cache interpreter info in memory #113

Merged
merged 3 commits into from
Jul 15, 2024
Merged

Cache interpreter info in memory #113

merged 3 commits into from
Jul 15, 2024

Conversation

DonJayamanne
Copy link
Collaborator

No description provided.

@@ -8,7 +8,6 @@ msvc_spectre_libs = { version = "0.1.1", features = ["error"] }

[dependencies]
pet-fs = { path = "../pet-fs" }
pet-python-utils = { path = "../pet-python-utils" }
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to remove this incorrect depenedency, core should not have any other dependencies related to python interpreters and the like.
Hence the large number of files touched.

@DonJayamanne DonJayamanne force-pushed the cacheInterpreterInfo3 branch from a13d8c1 to bf032d3 Compare July 15, 2024 07:16
@DonJayamanne DonJayamanne changed the title Cache interpreter info Cache interpreter info in memory Jul 15, 2024
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

use std::path::PathBuf;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved from pet-python-utils


// #[test]
// #[cfg(unix)]
// fn test_hash_generation_upper_case() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will be enabled/implemented in a separate PR.
This pr will only focus on in memory caching.

pub symlinks: Option<Vec<PathBuf>>,
}

impl PythonEnv {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to pet-core

@DonJayamanne DonJayamanne marked this pull request as ready for review July 15, 2024 07:31
@vscodenpa vscodenpa added this to the July 2024 milestone Jul 15, 2024
@DonJayamanne DonJayamanne merged commit 060ed51 into main Jul 15, 2024
21 checks passed
@DonJayamanne DonJayamanne deleted the cacheInterpreterInfo3 branch July 15, 2024 09:51
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.

3 participants