![]() |
Xpaths which are deemed to be common (used a lot) have optimized code paths, which where at all possible should be used over and above non-optimized paths Which is all fine, but what constitute slow paths, and which are fast? Every time a change of state occurs in the gateway (value change, items added and removed, snooze or active status changing, DB logging being modified, user assignment and so on) an event is sent which must be processed. Even in small gateways, this could be thousands a minute or even second. Pretty much all the paths need to be reviewed to see if there is something that needs to be done for a specific event, so one expensive path can have a massive detrimental effect on the gateway / console / montage and so on. |
![]() |
Here are some general guidelines about what is fast and what is slow during XPath evaluation: Fast Paths
Slow Paths:
Tricks of the trade:
Xpath Extras - Quick Reference Guide - explains in more detail how to build Xpaths.
|
Comments
0 comments
Please sign in to leave a comment.