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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,T_HK_NAME_FM_MR_MRS autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!toylet.eternal-september.org!.POSTED!not-for-mail From: "Mr. Man-wai Chang" Newsgroups: comp.lang.ada Subject: Re: How to optimize use of RAM/disk access ? Date: Mon, 22 Jan 2018 23:01:33 +0800 Organization: Hung Hom, Kowloon, Hong Kong Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 22 Jan 2018 15:01:33 -0000 (UTC) Injection-Info: toylet.eternal-september.org; posting-host="3fdb12c01e1df460ab6ee4df00dc7b48"; logging-data="7403"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198CuPczbkz5trQnDgCx9v+" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 In-Reply-To: Cancel-Lock: sha1:aCiXVZ2dvD1KefJRniyzCB6mq38= Xref: reader02.eternal-september.org comp.lang.ada:50054 Date: 2018-01-22T23:01:33+08:00 List-Id: On 20/1/2018 14:15, reinert wrote: > Hello, > > I am developing an Ada program which I want automatically, more or less, to optimize its use of RAM and disk access. Assume a number, N, controls/defines the size of a data set (for example N represents number of images which the program stores internally). Just now I am guessing a number, N, which I experience make my computer run the program the best way. However, when I change computer, I have to guess again :-) You sure your algorithm could do a better job than the operating system in which your compiled programs run? -- @~@ Remain silent! Drink, Blink, Stretch! Live long and prosper!! / v \ Simplicity is Beauty! /( _ )\ May the Force and farces be with you! ^ ^ (x86_64 Ubuntu 9.10) Linux 2.6.39.3 不借貸! 不詐騙! 不援交! 不打交! 不打劫! 不自殺! 請考慮綜援 (CSSA): http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa