Performance considerations
Making extensive use of attribute-to-script connections can cause performance problems. This is because they tend to get executed frequently, and this frequency is difficult to control. We advise that you use event-to-script connections rather than attribute-to-script connections unless you are sure that your attribute-to-script connection will run quickly and not too often.
For example, if you want to update the fields of a dialog box when a state change occurs, you can associate an attribute-to-script connection with each field that is triggered by the change. A more efficient way is to attach an event-to-script connection to the state change event and then update all the fields in one script. This second approach would have better performance.
The disadvantage to using event-to-script connections is, when you delete the attribute from the user interface, you must not only delete the attribute but also modify the appropriate script. With the attribute-to-script connection, deleting the attribute also deletes the script connection.
Last modified date: 01/29/2015