Improve Performance | Make faster! #56

Closed
opened 2023-09-08 01:08:08 +00:00 by d1hydr0gen · 0 comments
d1hydr0gen commented 2023-09-08 01:08:08 +00:00 (Migrated from github.com)

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!

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 in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: OpenSourceJoker/Moe-Counter#56
No description provided.