Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Performance | Make faster! #56

Open
d1hydr0gen opened this issue Sep 8, 2023 · 0 comments
Open

Improve Performance | Make faster! #56

d1hydr0gen opened this issue Sep 8, 2023 · 0 comments

Comments

@d1hydr0gen
Copy link

Hello. I want to suggest one improvments idea for peformance fix.
In your code, it looks like you are insert count to database each count.
If these huge amount of requests it will be cause bad performance.
I did a performance test, and your moe-counter recorded to handles 2,943/s requests.
I tried to imrpove this performacne to make it faster.
What i did, it's simple.

  1. make count saved to cache
  2. save cache to database every 10sec.
    It will improve performance.

I recoded moe-counter from scratch with the improvments. (https://github.com/d1hydr0gen/moe-counter-lite/)
and It recorded to handles 12,550/s requests.
I think these more improvments in my code too.
I hope this helps!

this is my personal message:
i ❤ moe!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant