News for hackers. Stuff that matters.
Re:Microsoft Has First Major Impact on Chrome by pragmatic on Saturday August 17, 2019 @10:44PM (#20727902)
How exactly?

The use case for perf improvement with async/await is for IO based issues, eg instead of burning a thread waiting for IO to complete, use IO completiion ports (on winders) blah blah.

If your work is CPU bound you can't async/await it away magically.

Maybe I'm misunderstanding you?

Re:Microsoft Has First Major Impact on Chrome by blackflame7000 on Saturday August 17, 2019 @11:30PM (#20728063)
Yea I’m also confused. You’re main thread should be able to run completely asynchronously from worker threads. With async, you are constantly hitting a memory barrier while the worker thread completes the promise and then the main thread draws the result. Ideally, the worker thread should be able to natively queue its task for non-blocking repaints.

Side note, this is why I’m a huge fan of Qt. They really did a fantastic job on building that framework for c++ to make it more safe

Re:Microsoft Has First Major Impact on Chrome by manigandham on Sunday August 18, 2019 @10:30AM (#20730317)
async/await is about non-blocking, not IO specifically. You can use async to not block the current thread while IO completes, or use it not block while while some CPU work completes (in this case on another thread while the UI is unblocked).

It's similar to using an event loop architecture for all UI actions.

Re:Microsoft Has First Major Impact on Chrome by ComputerGuru on Sunday August 18, 2019 @02:47AM (#20728656)
I was specifically referring to input handling off the main thread, from GP’s original complaint. IO only.