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-14 08:23:37 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!syros.belnet.be!news.belnet.be!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: fastest data structure Date: 14 Dec 2002 16:23:11 +0000 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <1aUJ9.318688$NH2.22572@sccrnsc01> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1039883013 25102 62.49.19.209 (14 Dec 2002 16:23:33 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 14 Dec 2002 16:23:33 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.ada:31813 Date: 2002-12-14T16:23:11+00:00 List-Id: "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.