Changelog - June 11th, 2020
New Feature: CPU Bursts
Because Pylon's execution engine limits individual events' CPU time consumption, you may run into problems utilizing Pylon for more computationally expensive tasks. To solve this, we've introduced CPU Bursts to the Pylon runtime. Everyone can start using this feature today, so lets talk about it.
What are CPU bursts?
You can use CPU bursts to run expensive routines or loops that are expected to exceed the base CPU time limit for an event or command handler. A prime use-case for CPU bursting is for generating images, but you can probably imagine several other workloads that require a higher CPU budget.
How do I use them?
We've added async requestCpuBurst(callback: function, requestMs?: number)
to the runtime, which is used to request and execute a CPU burst. You can find detailed documentation for CPU bursts over at the documentation site.
As always, you can find detailed type documentation over at the SDK Reference.