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

Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Overriding Display methods too complicated due to high amount of arguments (Making Display class easier to use)
Re: Overriding Display methods too complicated due to high amount of arguments [message #55214 is a reply to message #55205] Mon, 19 October 2020 15:59 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Oblivion wrote on Sun, 18 October 2020 19:16


Copying the value is not always a good idea as it can contain large stuff.


Incorrect, does not depend on how large the stuff is.

You would have to try hard to create Value that is expensive to copy because it is large. In fact, I think it is impossible.

If it fits within 12 bytes, you copy just 16 bytes. If it does not, it is created once and then reference counted. Now reference counting is certainly a bit expensive (but not prohibitively), but definitely does not depend on how large the stuff is... Smile

Mirek

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to use multi-tab control?
Next Topic: Can I make round form
Goto Forum:
  


Current Time: Fri Jun 12 08:08:21 GMT+2 2026

Total time taken to generate the page: 0.00569 seconds