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

CDL: Improve performance by simplifying CDS location identification #165

Merged
merged 4 commits into from
Dec 19, 2024

Conversation

lcartey
Copy link
Contributor

@lcartey lcartey commented Dec 11, 2024

We can assume that the path in the cds.json is relative to the repository root, as that is the directory the CDS compiler is run from.

We can assume that the path in the cds.json is relative to the
repository root, as that is the directory the CDS compiler is run
from.
In our testing framework we don't always have the .cds file indexed
so we can't guarantee the presence of the File entry. Instead,
compose the path using the sourceLocationPrefix, which will be
robust to whether the .cds file was indexed or not.
@jeongsoolee09
Copy link
Contributor

Thank you! Question: Did the previous code require a trip to the disk from computing the absolute path?

@lcartey
Copy link
Contributor Author

lcartey commented Dec 18, 2024

Previously, it looked up the .cds File entry in the files table on disk, based on the relative path in the .cds.json.

 - Index the .cds files in addition to the .cds.json files
 - Run the cds compiler at the appropriate path
@jeongsoolee09
Copy link
Contributor

LGTM, thank you!

@jeongsoolee09 jeongsoolee09 merged commit e981fbd into main Dec 19, 2024
5 checks passed
@jeongsoolee09 jeongsoolee09 deleted the lcartey/address-perf-issues branch December 19, 2024 00:37
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.

2 participants