From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fac41,b87849933931bc93 X-Google-Attributes: gidfac41,public X-Google-Thread: 109fba,b87849933931bc93 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,b87849933931bc93 X-Google-Attributes: gid103376,public X-Google-Thread: f43e6,b87849933931bc93 X-Google-Attributes: gidf43e6,public X-Google-Thread: 1108a1,b87849933931bc93 X-Google-Attributes: gid1108a1,public X-Google-Thread: 114809,b87849933931bc93 X-Google-Attributes: gid114809,public From: "Vos nom et pr�nom" Subject: Re: What is wrong with OO ? Date: 1997/01/14 Message-ID: <01bbd1a9$f068d160$LocalHost@christophe-leph>#1/1 X-Deja-AN: 209797679 references: <5a0niaINNlda@topdog.cs.umbc.edu> <32C43AC8.24E2@sn.no><32C557F6.532C@rase.com> <5aa0eo$thd@krusty.irvine.com><5aadbr$ad8@masters0.InterNex.Net> <32D64433.41C6@wi.leidenuniv.nl> organization: Chris & Co newsgroups: comp.lang.c++,comp.lang.smalltalk,comp.lang.eiffel,comp.lang.ada,comp.object,comp.software-eng Date: 1997-01-14T00:00:00+00:00 List-Id: Corey Minyard a �crit dans l'article ... > > Assembler will ALWAYS be the most efficient language. The more you > > abstract the problem, the more you "generalize" the solution to a > > given problem, the more you necessarily give up in efficiency. C > > takes a minimal 3x hit on integer arithmetic, 10x on more complex > > stuff; and OO, because of the overhead interpreting where > > to send things, is 10x on top of that. I agree. Assembler is the fastest when (and because you can in assembler) you wrote specialized routines. For more generalized routines, compilers are becoming quite as good optimizers to perform the job (closely) like any assembly programmer. But in most systems, time is spent in OS (or waiting I/O). Most applications are databases. Assembler for these ones is irrelevant. Assembler is useful for complex calculus. But only critical parts (the most often used) of the code should be written in assembler because finding more efficient algorythms gives generally far more improvements that just rewriting the C++ code in assembler. Because C++ is HLL, we can try many algorythms easier and quicker than we'd do in assembly. -- Chris "The nail pulling up calls the hammer" zen proverb