|
-
October 25th, 2006, 10:19 AM
#2
Re: Vector Retrieval Efficiency
Hi,
Try using ArrayList instead of Vector if you DON'T need synchronization. Vectors are synchronised and ArrayLists aren't, this means that if you don't need the List to be synchronised you are gaining a lot of overhead for nothing. If only one thread is accessing those Vectors consider using ArrayList instead.
Hope This Helps
Byron Tymvios
Please use [ CODE ] and [/ CODE ] tags when posting code! See THIS on how to use code tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|