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: 103376,8de7eedad50552f1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 24 Mar 2005 16:54:24 -0600 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Ada bench : word frequency References: X-Newsreader: Tom's custom newsreader Message-ID: Date: Thu, 24 Mar 2005 16:54:25 -0600 NNTP-Posting-Host: 67.161.24.234 X-Trace: sv3-z0S1KedUpQmfXXAuDmRsU5nshl0cXRDKNPTssQBq+EI279vU5ixAxrSJ5cQHaukP8KxScIJtALweZaG!ER0RdTZa2l0atc2hHzmLY4MOabb5dsYSaqFg8P2O0dWvV9fRdI0aYwrSq3696g== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:9935 Date: 2005-03-24T16:54:25-06:00 List-Id: > > function To_String (X : Form_Ptr) return String is > > Returning unconstrained object in a function cost a lot. True, but here To_String is only called once/Put_Line. How about eliminating the recursive call to Inc_Word for every character?