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

Stylesheet parser - multithreaded #20

Closed
tbrannam opened this issue Dec 18, 2014 · 1 comment
Closed

Stylesheet parser - multithreaded #20

tbrannam opened this issue Dec 18, 2014 · 1 comment

Comments

@tbrannam
Copy link
Contributor

I see that a singleton Stylesheet parser is kept by InterfaCSS - do you think it would be thread safe to create another instance if the Parser to parse data in a worker thread? I think the only thing lost in this case would be CSS constant definitions (@stuff: "stuff").

Clearly the UIView styling passes need to be in the UI thread - but do you think the parsing, factory stuff could be threaded safely?

@tolo
Copy link
Owner

tolo commented Jan 9, 2015

Sorry for the late reply - pretty much disconnected myself during the holidays.

It should be possible to make parsing concurrent. I had in fact planned to do that from the beginning to avoid locking up the UI when parsing, but after I completed the first round of parsing optimizations I kind of forgot about that. But I'm going to look into supporting async parsing, while at the same time supporting constants properly.

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

2 participants