Hi, you are right and i prefer your fix ;-)

I will though check with a profiler if an additional cache would 
increase or decrease performance.

regards, david


On Tuesday, April 16, 2002, at 02:23 PM, Bruno Lowagie wrote:

> Quoting David Teran <[EMAIL PROTECTED]>:
>
>> Hi,
>>
>> thanks, it seems that i forgott to add the '-' if a number is negative.
>> But i would prefer this fix, because it uses one String less ;-)
>
> I know, but I don't think your fix works.
>
> If you first have a value '100', it is cached as '100'.
> If you need a value '-100' afterwards, the cache longCache[100]
> is fetched and the needed value switches from negative to positive.
> If a value of '-10' is encountered first longCache[10] is set
> to '-10'. If you fetch the cached value for '10' later on, you
> get a negative value...
>
> Maybe you should keep two caches: positiveCache and negativeCache...
> Or you just use my bugfix.
>
> kind regards,
> Bruno
>


_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to