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 #32573 is a reply to message #32567] Wed, 25 May 2011 12:09 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
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.



Well the advantage is that you could have normal program flow without allocating and deallocating breaking up you execution. Deallocation would happen as a bulk operation only once in a while, either naturally or under the control of the programmer, i.e. before opening up a dialog and waiting for user input.

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 do not agree that we need compiler support, but here is the thing: with what I am proposing we do have compiler support. The destructors.

But I'll drop the subject now since nobody thinks this is a good idea.
 
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: Mon May 27 00:38:02 CEST 2024

Total time taken to generate the page: 0.00647 seconds