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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,229a77b902096176 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-16 16:38:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: fastest data structure Date: Mon, 16 Dec 2002 18:33:49 -0600 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <1aUJ9.318688$NH2.22572@sccrnsc01> X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:31930 Date: 2002-12-16T18:33:49-06:00 List-Id: Simon Wright wrote in message ... >"SteveD" writes: > >> Optimize only the parts of a system worth optimizing. One of the >> old systems proverbs, the 90-10 rule, says: In a typical >> application, 90 percent of the total run time is devoted to >> executing only 10 percent of the code. > >One problem with code generators (including compilers) is that you >tend to get distributed overhead. If you have a generic that is >instantiated in hundreds of places in your system, it's very hard to >see the inefficiencies using something like gprof. Unless your compiler uses code-shared generics. (Plug for Janus/Ada. :-) Of course, then you have the distributed overhead of generic sharing. (I'm afraid that there still is no free lunch.) Randy Brukardt.