Skip to content

Performance issue while moving from v3.4.2 to v3.7.3 #6008

Answered by asvetlov
hlecnt asked this question in Q&A
Discussion options

You must be logged in to vote

I think the reason is a little different.
After the mentioned change, your code schedules a lot of possible timeout events that pollute event loop internal structures even if timeouts never occur.
Before the change, all 'close' timeouts were grouped by scheduling at the ceiled time. Many possible scattered timeouts are grouped and called at most once per second, not 1000+ timeouts at different times during this second.
The ceiling works fine but caused problems with test environments that sometimes want to check timeout without relatively long waiting for a second. The ceiling now is processed only if timeout >= 1 sec, and disabled for tiny timeouts.

I believe you can increase timeouts to…

Replies: 2 comments 19 replies

Comment options

You must be logged in to vote
11 replies
@hlecnt
Comment options

@webknjaz
Comment options

@hlecnt
Comment options

@hlecnt
Comment options

@webknjaz
Comment options

Comment options

You must be logged in to vote
8 replies
@hlecnt
Comment options

@Dreamsorcerer
Comment options

@asvetlov
Comment options

@hlecnt
Comment options

@hlecnt
Comment options

Answer selected by hlecnt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants