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

GeneralPrinter is slow #501

Open
Gnimuc opened this issue Jun 30, 2024 · 3 comments
Open

GeneralPrinter is slow #501

Gnimuc opened this issue Jun 30, 2024 · 3 comments

Comments

@Gnimuc
Copy link
Member

Gnimuc commented Jun 30, 2024

It takes almost 1min on my m1 machine to generate only 7k loc: https://github.com/Gnimuc/ClangCompiler.jl/blob/main/lib/17/LibClangEx.jl

whereas, the codegen process only takes seconds...

@JamesWrigley
Copy link
Member

Anecdotally, I don't think it's ever taken that long to generate the CImGui.jl bindings, which are 14.5k LOC 🤔 Is it just TTFX? Or the printing itself really being slow?

@Gnimuc
Copy link
Member Author

Gnimuc commented Jul 1, 2024

I didn't profile but it stuck in "[GeneralPrinter]: print to ..."

@Gnimuc
Copy link
Member Author

Gnimuc commented Jul 1, 2024

The LOC of the generated file may not be a good metric because the number of nodes/symbols can be way larger.

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

No branches or pull requests

2 participants