Hi Loic,

Thanks for the effort. I hope you continue contributing to the project.

>-1-
>int size = Vector.size();
>for( int i = 0; i < size; i++ )
>{}
>
is better than
>
>for( int i = 0; i < Vector.size(); i++ )
>{}

We have used the first form in all places that are performance sensitive.
The second form is sometimes used in very infrequently-used methods.


>Vector is a synchronized object, ArrayList do the same but is not
>synchronized. Although a RDBMS must provide transaction isolation and thus
>Vector might be useful to do that, I think that sometime, hsqldb could use
>ArrayList objects instead
>of Vector. This remark applies to Hashtable vs HashMap too.

We are aware of the impact of synchronization. As a result David Nordahl has
developed our implementations of List objects which do not use
synchronization. Please download the 1.7.2 ALPHA B source package from the
file download section to see the changes.

Fred Toussi



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
hsqldb-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hsqldb-developers

Reply via email to