28.03.2022, 11:10
Another option is to add a longer delay between each write. It will take longer but there will be lower CPU load overall. You can tune the sleep time as needed.
Code:
value = event.getvalue()
objects = grp.tag('my_tag_name')
for _, object in ipairs(objects) do
object:write(value)
os.sleep(0.1)
end