Closed chemicalfiend closed 1 year ago
I think I may have a clue about what's happening, can you try out this PR #1134 and see if your systems get written out faster?
Got it. I did some profiling locally, and it seems the slow down actually has to do with the Compound.particles()
iteration, I will try and see if I can change the logic there and speed thing up.
(This is a box of 1000 ethane, so 8000 particles and 7000 bonds)
I think I have this figure out in #1135, @chemicalfiend, please see the screenshot below and the PR itself for more details. I will have the release with this change soon, so I will be out on conda-forge (either tomorrow or early next week)
Just repeated the before and after comparison. The difference is unbelievable! Thank you very much. This is going to speed up my workflows a lot.
Before PR#1135
After PR#1135
:tada: closing the issue. Thanks again.
mbuild's gsd writer right now is pretty slow for very large systems. Systems with 10s of thousands of atoms takes several hours to write to a gsd file. For complex structures such as the ones I had already mentioned in a previous issue (#1114) which seem to be reasonably common use cases, the gsd writer setup is slow on CPUs.
What are the possible speedups?