WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
4.1k stars 1.38k forks source link

[BUG] the first loading in ubuntu take so long time #1028

Closed roysG closed 2 months ago

roysG commented 2 months ago

Describe the bug why the loading in ubuntu take so long time?

To Reproduce Steps to reproduce the behavior:

  1. Start simple project in ubuntu
  2. You will see the fist initail loading take too much time

Expected behavior Fast loading as like in mac

I also attached the part that take too much time to load

Screenshot 2024-09-04 at 11 24 43
roysG commented 2 months ago

@w3nder, why do you thumb down?

When i load the bail eyes lib is take very long time in linux

w3nder commented 2 months ago

@w3nder, why do you thumb down?

When i load the bail eyes lib is take very long time in linux

This problem is not with Baileys, but with your code.

roysG commented 2 months ago

but when i run the same code in mac, it load in sec..

salmanytofficial commented 2 months ago

same problem with me it also sometimes crash

w3nder commented 2 months ago

I run my APIs on Ubuntu servers without any problems, this problem is with you, node version, poorly written code.

roysG commented 2 months ago

Hi, What is your version of node? What do you mean poorly code? I tried also run the default example,

I think the problem is that I compile the TS file While is running. So at Mac is fast cause I have high cpu and memory and Ubuntu is small vps.

Can you please share the command you start your Nodejs app?

Thanks

בתאריך יום ג׳, 10 בספט׳ 2024 ב-21:54 מאת Wender Teixeira < @.***>:

I run my APIs on Ubuntu servers without any problems, this problem is with you, node version, poorly written code.

— Reply to this email directly, view it on GitHub https://github.com/WhiskeySockets/Baileys/issues/1028#issuecomment-2341778107, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXZDOVXVRHNCPXPMXWUUNDZV457PAVCNFSM6AAAAABNTYW7Z2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBRG43TQMJQG4 . You are receiving this because you authored the thread.Message ID: @.***>