3 ms·
Can you move IO onto another thread, or use asynchronous/non-blocking methods? Blocking IO should never be done on your UI thread.
by maximilianburke 15y ago
Can you move IO onto another thread, or use asynchronous/non-blocking methods? Blocking IO should never be done on your UI thread.
- pornel 15y agoThat's what I'd like to do, but there are non-obvious cases that I could have missed, e.g. seemingly innocent system calls, observers/event callbacks. Also, when you make I/O truly async, you need to ensure UI behaves sanely while slow I/O happens in the background.