Comment

Comment by nhirschfeld

Thanks for asking!

It's both. The OCR part is ofc CPU bound, but the entire text extraction involves reading files, or writing and then reading files.

Without async, these simply block.

As for efficiency - if you're working in an async application context you have to "asyncify" these operations or suffer the consequences.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton