Re: C++ programmer and assembly
On Apr 24, 3:45 am, Mirek Fidler <c...@ntllib.org> wrote:
On Apr 23, 9:34 pm, Alex Shulgin <alex.shul...@gmail.com> wrote:
Am I missing something this time too?
Yes, your code does not do anything useful :)
If you start solving the real problems, not removing just random
elements, iteration costs will rise.
Hm... I assume you are basing on your experience, but could you
please suggest why exactly the costs will rise?
Is this just because my code is testing and in the real programs the
code is "real"? :-)
Do you mean that different code cache (as opposed to data cache)
printouts will affect performance in some way?
Is this because in real programs one would have a lot more of code
executed between individual inserts/erases into sequence under
consideration? When possibly that insert/erase loop is not that tight
for someone to bother on optimization...
--
Alex Shulgin
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]