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

Home » U++ Library support » U++ Core » Ptr improve
Re: Ptr improve [message #32621 is a reply to message #32573] Sat, 28 May 2011 21:10 Go to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
cbpporter wrote on Wed, 25 May 2011 06:09

mr_ped wrote on Wed, 25 May 2011 10:34


edit:
"What I want is to delay the free operation"
and why?? What's the advantage? I see plenty of problems with it, but no single advantage.



While I can routinely prove that C++ is considerably faster than a GC language, there are a few scenarios where C++ looses, and almost all of them involve allocating and freeing a huge number of objects.



I have only experienced this in scenario where there are only allocations and garbage collection is never invoked.

That said, in C++ you would need to keep the track of freed blocks (for bulk free) and that would likely be as expensive as current U++ allocator free...

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FIX: UPP::Scan returns int64 for INT_V
Next Topic: GetCurrentDirectory() Doesn't contain the \ is this a bug?
Goto Forum:
  


Current Time: Thu Sep 10 08:11:02 GMT+2 2026

Total time taken to generate the page: 0.00947 seconds