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

[Metadata Manager] How do I save the pathToHash map? #24

Open
gandi0330 opened this issue Sep 18, 2022 · 1 comment
Open

[Metadata Manager] How do I save the pathToHash map? #24

gandi0330 opened this issue Sep 18, 2022 · 1 comment

Comments

@gandi0330
Copy link
Member

We need a map called pathToHash, which checks the user's file system completely when the vcode is executed and sets the path key and hash to value.

As a way to save it, I was thinking of the json file format. Is there any other way? If you do, tell me how to do it

@smj53
Copy link
Member

smj53 commented Sep 21, 2022

We already had a talk with this issue, but I just want to write it down.

json file format

  • high cost (because we have to save and load files)
  • not necessary (we must always make pathToHash when the vscode starts, to know which files were changed)

So we decided to use map structure in code and not to save pathToHash in a file system.
(Am I right??)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants