Expand description
An implementation of Houdini worklets.
The goal of this implementation is to maximize responsiveness of worklets, and in particular to ensure that the thread performing worklet tasks is never busy GCing or loading worklet code. We do this by providing a custom thread pool implementation, which only performs GC or code loading on a backup thread, not on the primary worklet thread.
Structsยง
- Droppable
Field ๐ - Pending
Tasks ๐Struct - https://drafts.css-houdini.org/worklets/#pending-tasks-struct
- Worklet ๐
- https://drafts.css-houdini.org/worklets/#worklet
- Worklet
CspProcessor ๐ - Worklet
Executor ๐ - An executor of worklet tasks
- Worklet
Id ๐ - A guid for worklets.
- Worklet
Thread ๐ - A thread for executing worklets.
- Worklet
Thread ๐Init - Data to initialize a worklet thread.
- Worklet
Thread ๐Pool - Worklets execute in a dedicated thread pool.
- Worklet
Thread ๐Role - A role that a worklet thread can be playing.
Enumsยง
- Worklet
Control ๐ - The control message sent to worklet threads
- Worklet
Data ๐ - The data messages sent to worklet threads
Constantsยง
- MIN_
GC_ ๐THRESHOLD - WORKLET_
THREAD_ ๐POOL_ SIZE - _IMPL_
DOMOBJECT_ ๐FOR_ Worklet