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,2d76c4749a82ef0b,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-24 13:18:05 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!attbi_s04.POSTED!not-for-mail From: Freejack Subject: Strings Fixed, Bounded, and Counted. Performance Inquiry. Newsgroups: comp.lang.ada Message-ID: User-Agent: Pan/0.11.4 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: ALL NNTP-Posting-Host: 12.245.85.50 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s04 1067026684 12.245.85.50 (Fri, 24 Oct 2003 20:18:04 GMT) NNTP-Posting-Date: Fri, 24 Oct 2003 20:18:04 GMT Organization: Comcast Online Date: Fri, 24 Oct 2003 20:18:04 GMT Xref: archiver1.google.com comp.lang.ada:1620 Date: 2003-10-24T20:18:04+00:00 List-Id: I'm currently tooling around with the various standard strings packages And I began wondering if anyone has written a Counted strings package for Ada. Fixed strings are great in terms of performance. Bounded strings are pretty good. However I havent seen anyone do a performance analysis of Counted strings. I'm thinking in the Forth sense of the type. i.e. The first element of the String is a number indicating the length of the string. No null terminators needed. A bit more flexible than Fixed strings, a heck of a lot faster than Null terminated strings. Not sure how they stack up to Bounded strings. Has anyone played with these in an Ada context? I'm gonna write my own experimental package if nobody else has Freejack