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-Thread: a07f3367d7,c689b55786a9f2bd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!o8g2000yqo.googlegroups.com!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: for S'Image use Func?? Date: Tue, 11 May 2010 10:38:44 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4be417b4$0$6992$9b4e6d93@newsspool4.arcor-online.net> <1qcb6z4i20dyb.1dz2hd4c0vx69.dlg@40tude.net> <84r4k5Ftk8U1@mid.individual.net> NNTP-Posting-Host: 75.243.175.200 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1273599524 15992 127.0.0.1 (11 May 2010 17:38:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 11 May 2010 17:38:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o8g2000yqo.googlegroups.com; posting-host=75.243.175.200; posting-account=yOOUcAoAAABjcyl4BUJf9FM0ne56zA9Q User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100401 Ubuntu/9.10 (karmic) Firefox/3.5.9,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11516 Date: 2010-05-11T10:38:44-07:00 List-Id: On May 10, 1:52=A0pm, Warren wrote: > > I was aware of that, and not really sure if I saved anything > (I didn't check) by doing it myself. But I knew I didn't > care about the right trim etc. =A0I wouldn't be surprised > if something buried in the libraries uses it anyway, so > perhaps I should use it also. Did you save anything? Let me pull out my well worn copy of /Software Tools/, by Brian W. Kernighan and P. J. Plauger, Addison-Wesley, 1976. (Bear in mind that these are C guys.) "Most of the time programmers have no real idea where time is being consumed by a program. Consequently nearly all the effort expended (...) for 'efficiency' is wasted. We have found that the best way to avoid too-early optimization is to make a regular practice of in[s]trumenting code." "Algorithm and data structure changes are by far the most effective way to improve performance." The general rule is not to rewrite existing functionality unless your system does not meet its timing requirements with the existing operation, and measurement shows that the existing operation is causing the failure to meet the timing requirements. It is clear ("I didn't check") that this is not the case here. So, did you "save" anything? No, you not only didn't save anything, you wasted your effort by writing and testing code that duplicates existing functionality, that you were aware of, for no reason.