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

Add multiprocessing and log output to generator #976

Merged
merged 2 commits into from
Apr 7, 2022
Merged

Conversation

treiher
Copy link
Collaborator

@treiher treiher commented Apr 6, 2022

This adds a simple form of multiprocessing to the code generation. The multiprocessing reduces the code generation for the current SPDM specification from 3:40 min to 1:20 min. There is still much room for improvement, but this would require more effort.

Log output is added to be able to observe the progress of the code generation.

The generator code is also refactored to ease maintaining the code:

  • Unify how ada entities are imported (i.e., always import them directly), to make it easier to move functions between different generator modules
  • Move message-related code generator functions to generator.message

@treiher treiher requested a review from senier April 6, 2022 09:56
@treiher treiher merged commit 420259a into main Apr 7, 2022
@treiher treiher deleted the @treiher_generator branch April 7, 2022 14:32
@treiher treiher added this to Review in RecordFlux 0.6 via automation Jun 13, 2022
@treiher treiher moved this from Review to Done in RecordFlux 0.6 Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants