Hi, I'm pretty new to Patterns. I was wondering if there was an performance problem with this pattern? Having to iterate through every class in the chain seems like the same problem a linked List would have(Easy to implement new items, but costly for retreival) thanks in advance
From a strict performance perspective, indeed, iterating over a series of choices would be slower than a direct link to the corresponding object. When it comes to patterns, however, I would attack the problem from a flexibility and maintainability standpoint. If for some odd reason your implementation of the pattern becomes a bottleneck, then you can always take it out.
the performance depends on the proportion on how many times more of the requests get handled at top level objects rather than lower level objects in the tree.
hello, i am new to the patterns , all i want to know about the chain of responsibilty patter that how it works and what is its procedure, please tell me about it procedure completly.i have a project on it , i hope your help will help me in my project. regards zafar afridi