Article View: rec.games.programmer
Article #2048Re: cout vs printf speed (was: Should I learn C or C++ first?)
From: Matthew Kennel
Date: Wed, 06 Sep 1995 18:44
Date: Wed, 06 Sep 1995 18:44
17 lines
1630 bytes
1630 bytes
Eric Gunnerson (ericgu@microsoft.com) wrote: : The third point is that with new, you can define your own allocators on a per-class basis, so : that you can optimized your memory allocation scheme (can you say cache?) without modifying the : code that uses a class. But why does it have to be the special-gets-memory-from-the-OS new that is allowed be redefined? If everybody were to call say "create" instead, then you could put in caching in normal user-code? I.e. I don't understand the motivation for allowing tweaking with "new" when you could do it with normal routines, it seems like needless complexity. : -- : The opinions expressed in this message are my own personal views : and do not reflect the official views of Microsoft Corporation.
Technical Details
Message-ID:
<42kq70$8vu@martha.utcc.utk.edu>Path:
arc1-ca.pugleaf.net!martha.utcc.utk.edu!caffeine!mbkReferences:
<DDJ2Lp.3DG@pentagon-ai.army.mil> <41afe9$d10@newsbf02.news.aol.com> <41kici$p4t@deyke3.fc.hp.com> <41ngln$qau@druid.borland.com> <41tjep$2hn@deyke3.fc.hp.com> <41v8k9$jq8@tpd.dsccc.com> <41vst0$9nb@gap.cco.caltech.edu> <tgooding-3008950016040001@helser196.res.iastate.edu> <809779542snz@onex.demon.co.uk> <425akd$4r7@status.gen.nz> <42ibl0$kfq@news2100.microsoft.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!martha.utcc.utk.edu!caffeine!mbk From: mbk@caffeine.engr.utk.edu (Matthew Kennel) Newsgroups: rec.games.programmer,comp.lang.c++ Subject: Re: cout vs printf speed (was: Should I learn C or C++ first?) Followup-To: rec.games.programmer,comp.lang.c++ Date: 6 Sep 1995 18:44:48 GMT Organization: I need to put my ORGANIZATION here. Message-ID: <42kq70$8vu@martha.utcc.utk.edu> References: <DDJ2Lp.3DG@pentagon-ai.army.mil> <41afe9$d10@newsbf02.news.aol.com> <41kici$p4t@deyke3.fc.hp.com> <41ngln$qau@druid.borland.com> <41tjep$2hn@deyke3.fc.hp.com> <41v8k9$jq8@tpd.dsccc.com> <41vst0$9nb@gap.cco.caltech.edu> <tgooding-3008950016040001@helser196.res.iastate.edu> <809779542snz@onex.demon.co.uk> <425akd$4r7@status.gen.nz> <42ibl0$kfq@news2100.microsoft.com> NNTP-Posting-Host: caffeine.engr.utk.edu X-Newsreader: TIN [version 1.2 PL2]