Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Arrys vs Vectors
Arrys vs Vectors [message #30260] Tue, 21 December 2010 10:43 Go to previous message
281264 is currently offline  281264
Messages: 270
Registered: June 2010
Location: Spain
Experienced Member
Hi,

Some queries regarding the appropriateness of Arrys or Vectors. Please consider a generic scenario:

1.- In the manual it is mentioned that Arrays are significantly slower than Vectors. In a real application, is this noticeable? Does it have an strong influence in the application’s performance?.

2.- Programming wise, are there important differences? For example, are Arrays more complex to program and debug?.

3.- Debugging: If we store a class in Array, how to visualize the data of the classes stored in the Array with the debugger? Apparently this is not possible, which penalizes Array in comparison to Vectors (please correct me if I am wrong).

4.- Memory consumption wise: manual says that for small size of Array, this is more memory consuming than its Vector counterpart and improvements appears as Arrys sizes grows. Any hints about this? Any real figures from real applications?

5.- Pointers: apparently if you need pointers to classes, then Arrays is the only option available. What other limitations Arrys have compared with Vectors and vice versa?.

6.- In general (perhaps this is a non sense question) what is your preferred container?.
Thank you.

Best wishes,
Javier
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: asxml...or like I would like to keep encoding...
Next Topic: :( errors on sfx project
Goto Forum:
  


Current Time: Sat Apr 27 18:47:09 CEST 2024

Total time taken to generate the page: 0.94412 seconds