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 » Developing U++ » U++ Developers corner » Large data ahead
Re: Large data ahead [message #51124 is a reply to message #51123] Wed, 30 January 2019 10:43 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
Tom1 wrote on Wed, 30 January 2019 10:22
Hi,
How about making the containers internally int64 and then offering both int and int64 interfaces in parallel?


The reason I am hesitant about this is following:

struct Item {
Vector<String> foo;
Vector<int> bar;
};

Now with 'int' size, this is 32 bytes. With 'int64', this grows by 16 bytes (50%) which would be wasted to store zeroes in 99.999% of cases...

Also, Vector having exactly 16 bytes has (very) subtle advantage, it is a 'nice' number (memory is allocated in multiplies of 16, adressing can be done with simple shift etc...

Mirek

[Updated on: Wed, 30 January 2019 10:43]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: get debug info after intermittent crashing of theide
Next Topic: umk on Linux
Goto Forum:
  


Current Time: Sun Aug 03 16:31:20 CEST 2025

Total time taken to generate the page: 0.00664 seconds