In DD4T when rendering a component link we use
myComponent.GetResolvedUrl(), which a few layers below calls
LinkFactory.ResolveLink(component.Id) and subsequently relies on Tridion's sexy Dynamic Linking functionality. If I need to render the same link in multiple places in my view, I would normally store the output from the
GetResolvedUrl function in a variable and use that subsequently to avoid doing processing of the same thing multiple times.
My question is, what is the performance footprint if I do call the
comp.GetResolvedUrl() function on the same item several times? Is Tridion Dynamic Linking going to be crunching through its algorithm each time (described here [login required]: http://sdllivecontent.sdl.com/LiveContent/content/en-US/SDL_Tridion_2011_SPONE/concept_05ACF7173DCA4790A458CDE2BA33E2CC), or does the object cache play a big role here allowing me to be lazy and call GetResolvedUrl() all I want on the same item without experiencing heavy redundant processing?