This is from Alan Smiths Presentation
Brute Force approach(Solution 1)
Better Solution (solution 2)
Advantage of solution 2 over solution 1
- Number of Persistence Point
Persistence point is created after each send shape, unless it is enclosed under atomic scope. Since in the second solution all the send shapes under atomic scope, only one persistence point is generated. Which is at the end of the Atomic scope. Where as, in the first solution there will be three persistence point generated.
- Error handling