My expectation would be that it wouldn't be significant/noticeable,
but it should be easy enough to knock up a test to confirm and
quantify that...
Of course, if you can just use numbers, then you can just use
switch()...
/Gwyn
On Sunday, September 16, 2007, 1:01:02 PM, darrengreer <[EMAIL PROTECTED]>
wrote:
> Thanks David. On implementing the first method you mention here below, I
> have one follow-up question. If, at some point, I have a 50+ different
> if/then statements, would there be a noticeable performance impact?
> David Bernard-2 wrote:
>>
>> To implement the method, I see 2 ways:
>> 1/ a list of if/else
>> if ("up".equals(panelType)) {
>> return new UserPanel(id);
>> }
>> if( "xx".equals(panelType)) {
>> ...
>> }
>>
/Gwyn
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]