Compositor icon indicating copy to clipboard operation
Compositor copied to clipboard

Do the heavy lifting of document loading on a background queue

Open ktraunmueller opened this issue 4 years ago • 1 comments

DocumentModel.load() currently calls SourceModel.load() on the main queue; this may cause UI hangs.

Dispatch the work to a background queue and introduce a completion closure.

Edit: maybe also look into https://developer.apple.com/documentation/appkit/nsdocument/1515216-canconcurrentlyreaddocuments

ktraunmueller avatar Jun 01 '20 07:06 ktraunmueller

CRing.tex is an example of a large document that causes a longer hang when opening.

ktraunmueller avatar Apr 03 '21 09:04 ktraunmueller