improving string lengths

Just starting out? Need help? Post your questions and find answers here.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: improving string lengths

Post by Trond »

Tenaja wrote:
Trond wrote:...
This is how to measure the size (without OS overhead) of a normal (not fixed) PB string:
....
The problem with your calculation is that even IF there is OS overhead, then that memory is USED within the managing scheme of the strings. Therefore, maybe the string itself isn't in that overhead, but the string requires it anyway. As a result, managed strings "require" that overhead, whatever it is. The bottom line is that I care about overall memory consumption, not individual string use.
It seems like there is an 8 byte OS overhead: http://www.tech-archive.net/Archive/Dev ... 00971.html
Post Reply