U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » substring find
Re: substring find [message #866 is a reply to message #861] Mon, 06 February 2006 11:37 Go to previous messageGo to previous message
hojtsy is currently offline  hojtsy
Messages: 241
Registered: January 2006
Location: Budapest, Hungary
Experienced Member
luzr wrote on Mon, 06 February 2006 05:28

No, small string optimization means that for small strings, you keep data inside String object, something like:

String {
struct Large {
const char *ptr;
....
}
union {
char data[16]
Large large_string;
}
};
Yes, that was what I thought. And it's similar to how the Mitor works - storing element data in the memory area of the container object itself.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: storing my struct in a Value
Next Topic: bits/atomicity.h
Goto Forum:
  


Current Time: Tue Jun 02 16:45:04 GMT+2 2026

Total time taken to generate the page: 0.01161 seconds