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

Compiler process takes a long time to stop #8411

Open
arnaudsjs opened this issue Nov 26, 2024 · 0 comments
Open

Compiler process takes a long time to stop #8411

arnaudsjs opened this issue Nov 26, 2024 · 0 comments
Labels
performance Address a performance concern

Comments

@arnaudsjs
Copy link
Contributor

Problem description:

When the compiler finishes, it takes a long time for the process to actually stop. It's unclear why this happens.

Illustration:

❯ time inmanta -vvv compile
compiler       DEBUG   Starting compile
compiler       DEBUG   Parsing took 5.046 seconds
compiler       DEBUG   Compiler cache observed 109 hits and 0 misses (100%)
compiler       INFO    verifying project
compiler       WARNING Module lsm is present in requires but it is not used by the model.
compiler       DEBUG   Plugin loading took 0.253 seconds
compiler       INFO    The following modules are currently installed:
compiler       INFO    V2 modules:
compiler       INFO      juniper_mx: 23.1.4.dev20241125041038
compiler       INFO      juniper_srx: 23.2.1.dev20241125024622
compiler       INFO      std: 7.0.1.dev20241125112313
compiler       INFO      yang: 3.3.2.dev20241125045214
compiler       DEBUG   Compilation took 2.079 seconds
compiler       DEBUG   Compile done
compiler       DEBUG   The entire compile command took 7.389 seconds

=============================================================================================================================================================================== SUCCESS ===============================================================================================================================================================================
inmanta -vvv compile  12.26s user 0.23s system 99% cpu 12.562 total

How to reproduce:

Create a new project that imports a big module and run the above-mentioned command.

@arnaudsjs arnaudsjs added the performance Address a performance concern label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Address a performance concern
Projects
None yet
Development

No branches or pull requests

1 participant