concrete-properties
concrete-properties copied to clipboard
Speed up with multiprocessing
Is your feature request related to a problem? Please describe. Biaxial bending diagrams and to a lesser extent, interaction diagrams, can take a long time to generate. Both of these features involve a number of independent calculations, currently implemented in a for loop.
Describe the solution you'd like
Using the python multiprocessing module would allow these computations to be performed in parallel on multiple cores, vastly speeding up these analyses.
I will work on it if you tell me in what file i should look and maybe even what function. I won't test it, if anything isn't working afterwards you can inform me.
Hi @ChinoCodeDemon,
Sorry for the delayed response!
The two calculation loops that are expensive and could be computed in parallel are:
I won't test it, if anything isn't working afterwards you can inform me.
Not sure what you mean by this, I would expect some effort is put into ensuring the implementation is robust, even if it's just a simple test that compares the results from the parallel method to those determined from a simple for loop, see contributing guidelines here.
I cannot open a GUI since I work with containers. I could implement some tests.
I created a draft pr #37 which still is heavily work in progress. I will set it out of draft once everything is prove-able stable.