[Chennaipy] Reduce the search time on a huge text file

Saravanan Muthuramalingam saravana4285 at gmail.com
Wed Jun 23 18:22:04 EDT 2021


Hello Abirami ,

   I'm presuming your doing search in python by reading text file which is
big in size ?, if yes then give it a try with while loop and  yield , so
that you can load portion or batches of data into memory and do search
operation , thanks

Saravanan Muthuramalingam

On Wed, 23 Jun 2021, 13:48 Abirami Moorthy, <mabirami8799 at gmail.com> wrote:

> Hello, I'm tried to search the words from text file this having 25lakhs
> above word. It's take long time to progress. Kindly share ways to find the
> words in 1min maximum.
>
>
>
> Regards,
> M.Abirami
>
> _______________________________________________
> Chennaipy mailing list
> Chennaipy at python.org
> https://mail.python.org/mailman/listinfo/chennaipy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/chennaipy/attachments/20210624/38bc78b1/attachment.html>


More information about the Chennaipy mailing list