So far using both checkers (for LDM and Serializable) doesn't make my
app visibly slower.

On Wed, Oct 10, 2012 at 5:30 PM, Emond Papegaaij
<[email protected]> wrote:
> On Wednesday 10 October 2012 13:40:36 [email protected] wrote:
>> Minor performance improvements.
>> -                                     String arrayPos = "[" + i + "]";
>> +                                     CharSequence arrayPos = new
> StringBuilder(4).append('[').append(i).append(']');
>>                                       simpleName = arrayPos;
>>                                       fieldDescription += arrayPos;
>>                                       check(objs[i]);
>
> I don't think this is going to help much. 'arrayPos' is still appended to
> fieldDescription, so the String is still created (and discarded). We discarded
> the 'i' entirely and do not update fieldDescription. IMHO, [write:3] doesn't
> tell you anything, as it is related to the serialization internals of whatever
> object you are trying to check.
>
> Best regards,
> Emond



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

Reply via email to