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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: most efficient method of storing records held in array Date: Mon, 23 Mar 2015 08:34:27 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Mon, 23 Mar 2015 15:33:39 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="3f77efd256cd7097938236a53a6861ee"; logging-data="18869"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19bWQYwUIGYP9iBL4dw7Ny6vgpDkDgdNUk=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 In-Reply-To: Cancel-Lock: sha1:HWhrow2w5Cz9SAKRNTpKDsM31no= Xref: news.eternal-september.org comp.lang.ada:25226 Date: 2015-03-23T08:34:27-07:00 List-Id: On 03/23/2015 04:56 AM, tonyg wrote: > > > Are there any other examples out there using this library? I was thinking of > a generic library using direct io to save on the index whenever the values > are changed. I think efficiency is a poor reason to avoid a simple solution, at least until you have tried it and found it doesn't meet your timing requirements. However, it sounds as if, for your case, the simplest solution might be to hide the array in a package and provide Put and Get operations, with Put writing the new value to disk using Ada.Direct_IO. -- Jeff Carter "What's the amount of the insult?" Never Give a Sucker an Even Break 104