MontePy icon indicating copy to clipboard operation
MontePy copied to clipboard

Implement parallel parsing

Open MicahGale opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

With large models read_input can be very slow, on the order of 10+ minutes for something like ITER-C. See #509.

Describe the solution you'd like

One way to deal with this is to use parallel parsing. This can be done with multiprocessing or concurrent.futures. A few notes:

  1. This will be fickle for windows support. End-users will always have to use __name__=="__main__" guarding. Due to this serial and parallel parsing should be both supported and serial should be the default

  2. Error recovery during iteration is very complicated. Therefore montepy -c should only run in serial

Describe alternatives you've considered

A faster parser #432, or a just-in-time parsing #529

MicahGale avatar Apr 10 '25 12:04 MicahGale