According to @eastgate, all things being equal agents use less computational power.. If it’s not possible to identify one attribute with another one, I think this simple operation will will be taxing as an agent for the performance of the document because it will be applied to many notes:
($Prototype=="pTheme" & ($Theme =="" | $Theme!=$Name)) {$Theme=$Name}
I wonder if it would be less taxing just to eliminate most of the checking:
($Prototype=="pTheme") {$Theme=$Name}