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

Scheduler design - Input needed #6

Closed
benlesh opened this issue Mar 25, 2015 · 4 comments
Closed

Scheduler design - Input needed #6

benlesh opened this issue Mar 25, 2015 · 4 comments
Labels
help wanted

Comments

@benlesh
Copy link
Member

@benlesh benlesh commented Mar 25, 2015

I spent a little time talking with @trxcllnt yesterday about scheduler design. I've also glossed over this briefly with @jhusain and @benjchristensen

I have a REALLY, REALLY primitive impl in the codebase now, but it needs work. In particular it needs a better design.

Right now it's a global scheduler. But you'll notice I added a dispose() method to it. This is because I initially created it as a class, and thought scheduling might be instance based. This would make scheduling more flexible. However, global scheduling is very useful for things like Framework lifecycles (@IgorMinar, @machty).

I'm looking for input as to how to make this flexible but easy to understand for authors.

@benlesh benlesh added help wanted question labels Mar 25, 2015
@benlesh
Copy link
Member Author

@benlesh benlesh commented Mar 25, 2015

Also, PLEASE tell me if I'm doing something stupid. lol

@benlesh
Copy link
Member Author

@benlesh benlesh commented Mar 25, 2015

... and I do realize the primitive scheduler I've put in place is an "execute until done" sort of scheduler. Meaning it doesn't provide gaps for other code execution. This is a bare-metal simplistic impl. I think for most browser-based use cases, adding gaps ala MicroTask scheduling probably isn't completely necessary because the event stream sources themselves will be async, but there's definitely a need for that type of scheduler.

@machty
Copy link

@machty machty commented Mar 25, 2015

@Blesh sounds like you meant to provide a link to the code, no?

@benlesh
Copy link
Member Author

@benlesh benlesh commented Apr 6, 2015

Closing this for now. I feel like the Scheduling is in an okay place.

@benlesh benlesh closed this as completed Apr 6, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jun 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted
Projects
None yet
Development

No branches or pull requests

2 participants