3 ms·
mojolicious is using a non-blocking async runloop as well =)
by marcusramberg 16y ago
mojolicious is using a non-blocking async runloop as well =)
- harryf 16y agoThe problem you'd have with anything that represents a page as some kind of graph is you have to construct the whole tree before you can start doing anything with it. The API largely precludes streams. Callbacks would be possible but some of the conditional CSS selectors need a complete knowledge of the page before they can be resolved. So while GET-ting pages to scrape can benefit from async IO, you're effectively "blocked" while scraping pieces out of the page itself.