There are different areas that work can be done in parallel execution, on a non DOM context, by moving to the use of OffscreenCanvas and WebWorkers API.
Some of the potential areas to be refactored are:
- Shape / canvas indexation (eg:Pickers,ColorMap)
- Transferable image context (rendering) from offset to main canvas
- Image strips
- Text labels