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   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
Tom1 wrote on Wed, 30 January 2019 10:22Hi,
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
|
|
|
Goto Forum:
Current Time: Sun Aug 03 16:31:20 CEST 2025
Total time taken to generate the page: 0.00664 seconds
|