tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/7793-viewmap-vs-mediatormap-for-injection-purpose-onlyRobotlegs: Discussion 2014-03-12T10:10:31Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/302505492013-11-28T11:07:50Z2013-11-28T11:07:50ZViewMap vs MediatorMap for injection purpose only<div><p>I haven't done any tests, therefore I admit immediately and in
advance that I'm a piece of lazy ass.<br>
Yet, If anyone has some information — it would be very
helpful =)</p>
<p>In a legacy project I have found that previous developers were
using mediators for some custom Flex components just to inject
("manually" through corresponding mediators) some localization
managers and other helpers. Though you could simply map view via
ViewMap. They briefly mentioned that it's because "parsing heavy
views is less efficient". And I assumed there's some caching in
SwiftSuspenders, so I guess it actually should be more efficient to
rely on ViewMap.</p>
<ul>
<li>I'm talking about ~5 custom component types and more than 100
instances to inject to.</li>
</ul></div>pavel.fljottag:robotlegs.tenderapp.com,2009-10-18:Comment/302505492013-11-28T16:48:59Z2013-11-28T16:48:59ZViewMap vs MediatorMap for injection purpose only<div><p>Hey Pavel,</p>
<p>Tsk, tsk, no tests? Just kidding.</p>
<p>I've only heard about massive performance issues when using the
ViewMap <strong>and</strong> the MediatorMap together, but I might
be wrong.<br>
There are lots of discussions on this topic, and lots of opinions,
but you've probably seen them already:<br>
<a href=
"http://knowledge.robotlegs.org/search?q=performance&recommend=1&t=d">
http://knowledge.robotlegs.org/search?q=performance&amp;recommend=1...</a></p>
<p><a href=
"http://knowledge.robotlegs.org/discussions/problems/65-massive-performance-problem-with-robotlegs-need-advice#comment_1310876">
http://knowledge.robotlegs.org/discussions/problems/65-massive-perf...</a></p>
<p>On a side note, tell me, why don't you use robotlegs 2? ;)</p>
<p>Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/302505492013-11-28T18:40:25Z2013-11-28T18:40:25ZViewMap vs MediatorMap for injection purpose only<div><p>Ondina,</p>
<p>sure I've checked other topics before, but haven't found this
particular kind of discussion.<br>
But at least I've checked that version of SwiftSuspenders, Till is
indeed caching the result of describeType, so I guess the less
viewMap.mapType() and the more instances you have — better
you inject directly into components (in my case).</p>
<p>Our team uses Robotlegs 2 for the recent project, but for the
old one it just doesn't make sense to switch at this point.</p></div>pavel.fljottag:robotlegs.tenderapp.com,2009-10-18:Comment/302505492013-11-29T09:18:42Z2013-11-29T09:18:42ZViewMap vs MediatorMap for injection purpose only<div><blockquote>
<p>but for the old one it just doesn't make sense to switch at this
point.</p>
</blockquote>
<p>Understandable. I guess, I was worried you didn't like Robotlegs
2 :P</p></div>Ondina D.F.