Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
Do you use a garbage collector?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Roedy Green, post: 3524231"] Yes, in theory, but since Java uses garbage collection which nearly always would imply it can later move objects, it can get away with a very simple, very rapid allocation algorithm, namely adding the length of the object to the free space pointer. In Java there are all kinds of short-lived objects created. It makes sense to allocate them as rapidly as possible. In C++, objects typically don't move, so the allocation algorithm has to take more care with where it places them. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
Do you use a garbage collector?
Top