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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c32f6f0b23106020 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Large strings in ADA Date: 2000/04/17 Message-ID: <8df273$hrh$1@nnrp1.deja.com>#1/1 X-Deja-AN: 612209751 References: <38FA3003.A38D7B51@xpress.se> X-Http-Proxy: 1.0 x32.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Apr 17 13:05:47 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-04-17T00:00:00+00:00 List-Id: In article <38FA3003.A38D7B51@xpress.se>, Johan Groth wrote: > Hello, > I'm trying to write a program that converts a couple of types to strings > and are concatenated into one large string that is at the moment a > unbounded_string but when the string gets about 50KB big it takes longer > and longer to append to it. By the way, the use of gigantic contiguous strings is almost always a very bad data structure choice, and if you are interested in efficiency, you should probably start by rethinking your data structures and using a more effective data structure. Since C has rather poor data structuring abilities compared to Ada, it is not unusual to "spin your own" in C, but in Ada there is certainly a better way of doing things. Sent via Deja.com http://www.deja.com/ Before you buy.