Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 14256
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: Wed Apr 30 04:18:03 CEST 2025

Total time taken to generate the page: 0.00656 seconds