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

[Frontend] Only read from disk if necessary #1315

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

Conversation

erick-xanadu
Copy link
Contributor

@erick-xanadu erick-xanadu commented Nov 19, 2024

Context: The QIR and MLIR fields in the QJIT object are purely used for either debugging or cosmetic features. As such, their implementation should really be optional and not affect compile time.

Description of the Change: This commit introduces the change that the fields QIR and MLIR are computed lazily to avoid reading their contents from disk. Instead of unconditionally reading them from disk, just read them from disk if the user really wants them.

Benefits: Not yet benchmarked, but ideally it should reduce compilation time.

Possible Drawbacks: The size of LLVM-IR is not measured through instrumentation in the current state of this PR.

Related GitHub Issues:

[sc-78851]

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