Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Run code generation in parallel #226

Open
dominikjeske opened this issue Apr 14, 2020 · 1 comment
Open

Run code generation in parallel #226

dominikjeske opened this issue Apr 14, 2020 · 1 comment

Comments

@dominikjeske
Copy link

Current implementation of Codegen is using simple loop for code generation. Maybe it would be better to use Parallel.For or other multithread mechanism?

@amis92 amis92 added this to the Backlog milestone Apr 14, 2020
@amis92
Copy link
Collaborator

amis92 commented Apr 18, 2020

@bigdnf Hi.

Parallelism introduces a lot of issues we'd need to resolve. First we'd need to get some hard numbers. How long does it take for generators to run, in comparison with the whole run time of the Tool? Are these costs comparable?

If we can definitely prove that code generation takes most of the time, and not the warm-up and actual compilation before generators are invoked, we can proceed with implementation.

For exactly that purpose, I'll open a new issue to add performance tracking somehow into the Tool. Total run time of the Tool is registered by MSBuild anyway. So then we'll be able to compare these values.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants