LuanRT / google-this

A simple yet powerful module to retrieve organic search results and much more from Google.

Home Page:https://www.npmjs.com/package/googlethis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[enhancement] Slow down / latency

GeistFighter opened this issue · comments

Hi,

I put Google-this on a Discord bot, it plays music 24/24 on the channel, so there is a google search function, which works well.
image

But I noticed that it uses a lot of resources, (especially RAM memory that accumulates as the searches).
image

Moreover, and this is what made me notice the thing, when a search is loading, the bot that plays the music cuts 1 to 2 times, as if it generate a big load in terms of performance or internet speed.

Do you have any idea how to optimize my google-this searches?

commented

Hello, thanks for reporting.
The library makes only one request and then parses the results, so that's a quite weird behavior. I'll do some testing to see if I can reproduce the problem.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.