LuanRT / google-this

A simple yet powerful module to retrieve organic search results and much more from Google.
https://www.npmjs.com/package/googlethis
MIT License
323 stars 77 forks source link

[enhancement] Slow down / latency #17

Closed GeistFighter closed 2 years ago

GeistFighter commented 2 years ago

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?

LuanRT commented 2 years ago

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.

github-actions[bot] commented 2 years ago

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.