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 · 4 comments
Open

GeneralPrinter is slow #501

Gnimuc opened this issue Jun 30, 2024 · 4 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.

@serenity4
Copy link
Contributor

I had something similar trying to wrap the win32 API, it took very long but only when I had a lot of entries in printer_blacklist. I then realized it was mostly spent compiling regular expressions, which should be fixed in #518. Could it be what made the printing case so slow here?

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

3 participants