Minishlink / physbook

Social extranet for Arts et Métiers ParisTech students
https://physbook.fr
GNU General Public License v3.0
18 stars 4 forks source link

Performance in Encryption::encrypt #142

Closed cap-mayank closed 7 years ago

cap-mayank commented 7 years ago

HI, Thanks for Minishlink it work well for me for limited user's.

I am facing performance and high CPU uses issue when I try API for around 1500 users token. API taking around 1 hours to send notification to 1500 users. I tried to debug the code and go t to know that. the issue is in WebPush.php file at line number 191 Encryption::encrypt();

Can you please suggest any clue to solve this. I am happy to resolve this issue and commit code here as well.

Thanks, Mayank Kanungo

Minishlink commented 7 years ago

Hi @cap-mayank, I believe this is an issue for my WebPush library? I'm happy to answer on the corresponding repo ;)