phatpiglet/autocorrect

Too slow..

Opened this issue · 4 comments

It takes 6+ seconds to give me the corrected word.

print(spell('wednsday'));
wednesday
[Finished in 6.5s]

print(spell('hello'));
hello
[Finished in 6.6s]

I would love to contribute to this project. Please tell me your preferred method of contact. Till then, I will go through the code.

Have you considered Cythonizing it? It would greatly increase the speed.
Also, you can attempt to use numpy's arrays for tuples which you might have.

That's also a great idea @v2thegreat . I will try when I get some time.

hmm, I'm fairly new to GitHub, what would I have to do to make a contribution myself, @akshaynagpal?

One thing that I notice is that it can also be high memory consuming, getting to 12 GB of my 16 GB RAM notebook and freezing the computer.