question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rewrite scheduler to avoid polling

See original GitHub issue

Currently, the scheduler loops through all sockets and timers every 20 milliseconds to check if they’re ready. This is probably not scalable. Even if the performance impact is not as bad as it seems, it just feels bad to waste resources like that. Maybe we can use select?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:24 (24 by maintainers)

github_iconTop GitHub Comments

1reaction
ioistiredcommented, Aug 11, 2020

Good job Kinnay :shipit:🎉

0reactions
kinnaycommented, Aug 9, 2020

Ok I moved it to master. The old (synchronous) implementation is now in the branch ‘old’.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating an Event Scheduler with Polling for changes. - Medium
polling_threshold : time in seconds to stop polling before the event. Here we have initialized the Scheduler, let's see how polling is implemented....
Read more >
java - Long polling in minute or single scheduler for a task
I have a requirement in which, I will plan multiple tasks for certain interval. And for each task a notification has to be...
Read more >
Polling API - Metamug
Avoid polling when callbacks are available​​ Polling in few cases can used when callbacks dont respond in time or server requests fail. A...
Read more >
RxCookbook/Polling.md at master · LeeCampbell ... - GitHub
Only start re-polling once the previous request has completed. This is important if you don't want to have over lapping requests. Log errors,...
Read more >
Niagara Drivers Poll Scheduling and Tuning Policy Settings
The Niagara drivers are cleverly engineered to keep processing and comms loads as low as possible by only writing data when absolutely necessary,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found