aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-03-08 04:45:25 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2016-03-08 04:45:25 +0530
commitfee7cb179ee7ba2f159d87af07afaf0cd99a2161 (patch)
tree42d7ff160f68ab0f2deaa7988e3cdc9b8735e91b /components/layout/construct.rs
parent7308205bfc15f217d80dd2fc9995531bcea77d00 (diff)
parentb187985e4967c2ccb6c951a68b7c0916caa16bb4 (diff)
downloadservo-fee7cb179ee7ba2f159d87af07afaf0cd99a2161.tar.gz
servo-fee7cb179ee7ba2f159d87af07afaf0cd99a2161.zip
Auto merge of #9850 - nikkisquared:2_async_2_furious, r=jdm
Set response.body Asynchronously In Fetch Following having finished making Fetch asynchronous, response.body should be set asynchronously, since it's the major goal of calling Fetch. So far, I've made the body wrapped in Arc<Mutex<>>, and I've wrapped a new thread around the part where it's set. I've also discovered that the fetch_async function makes step 8 of Main Fetch obsolete, and I've commented it appropriately. I'm currently having a hard time with the thread for setting response.body, though. @jdm suggested I have the body set continually, block by block, but my implementation for that runs so slow that I can't finish running my fetch test suite in reasonable time. @KiChjang pointed out that a lot of the lag is due to how response.body currently stores everything inside a Vec. Changing the storage container seems to be both necessary and beyond the scope of the time I have to work on this. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9850) <!-- Reviewable:end -->
Diffstat (limited to 'components/layout/construct.rs')
0 files changed, 0 insertions, 0 deletions