How important is it to combine system.tag.readBlocking() into a single call?

For what it’s worth, you don’t have to remember, you’ll already have a list of tag paths and it’s a simple comprehension to get a dictionary where the tag values can be accessed by name.

I also disagree that there is marginal performance benefits, particularly as the number of tags grows.

If it’s just write and forget, then writeAsync should be used, and then you can probably neglect performance gains, but with blocking calls your blocking the thread 30 times.

I have a library function that takes a list of tagPaths reads them and returns a dictionary, and another which takes that dictionary and the list of tagPaths and writes the values all at once.

There is a reason this advice is echoed all over the forum.

1 Like