| |||||||||||||||||||||
Spts Origin Script New Sitespts run /etc/spts/origin.lua --dry --verbose Look for the line: [STATUS] Origin script new loaded successfully - Asynchronous mode enabled . Migration is not always automatic. While the new script is backward compatible, you should refactor your old routines to leverage the performance gains. -- Legacy Origin style local data = SPTS.fetch("sensor_01") SPTS.process(data) SPTS.fetch("sensor_02") SPTS.process(data) This took approximately 200ms per fetch in sequence. spts origin script new -- New Origin script style local results = await all({ SPTS.fetch_async("sensor_01"), SPTS.fetch_async("sensor_02") }) for each in results do SPTS.process(each) end Execution time drops to ~110ms total because the fetches overlap. While the update is largely stable, early adopters have reported three common issues. Here is how to solve them: spts run /etc/spts/origin ![]() |
![]()
|
||||||||||||||||||||
| |||||||||||||||||||||