Ah, then there's no problem, because the ratio mem used / mem requested will be > 90%, because in fact I don't allocate 1 big pool, but I do allocate many small ones. For example, in a video game...
Type: Posts; User: Morglum
Ah, then there's no problem, because the ratio mem used / mem requested will be > 90%, because in fact I don't allocate 1 big pool, but I do allocate many small ones. For example, in a video game...
Thank you very much, Coder, for your reply. I've learned many things, and the link now works.
There's only one point that I don't understand : why should my memory manager have any problems with...
I've searched "Overload operator new" in google and I've found many interresting papers ! I'm so sorry to have posted a question here, whereas the answer was so easy to find elsewhere. On the other...
Hi !
I'm writing a memory manager with its own garbage collector. The garbage collector (GC for short) moves objects in memory to reduce fragmentation of free space. Of course, each time I call...
Hi !
I've searched through 80+ messages of this boards, but I've found no answer.
What is the syntax to overload operator new ? This is for a memory manager, so I'd like an operator new which is...
Ooops, I've just understood that pointer_cast was not a keyword, but a function's name.
Oh, and by the way, here are the reasons for which I'm attempting to replace win98's standard alloc routines :
1) win98 is very bad at reusing freed memory. When you do 1000 news and 1000 deletes...
Ninebit,
your post was very instructive for me, because I didn't know that it was possible to replace the by-default new&delete operators. Of course, it's possible to overload them, but they do...
Thanks for your replies !
Coder, by "writing my own memory manager", I mean : begin with the allocation of a big buffer (using a malloc or a new), and then allocate&deallocate myself memory inside...
Aaah, thanks ! I didn't know that the pointer_cast keyword did exist.
Thanks for your reply, Mario. But what should I write instead ? I don't see any other possible syntax !
Hi !
I'd like to know whether it looks reasonnable to you gurus to write a whole game using the standard memory manager of the operating system. Or is it necessary to write new allocation routines...
Hi !
I'd like to know whether it's possible, for an operator, to be a template (using vc++6). More specifically, suppose I've got a template class
template <class T> class Pointer <T>
{ T...