'Python function taking a lot longer than before?

I had used gensim and Word Mover's distance to generate a distance matrix for my text of ~4000. The first time I ran it, it took about a day or so. I am trying to run it again and it is taking more than 4 days so far. Another function that runs KMedoids usually takes minutes but now takes days. I have tried using garbage collector to clear up some memory but that hasn't solved anything.

import gc
gc.collect()

I've tried restarting my computer but that also didn't help. I'm not sure what to do to fix this.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source