comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: How to optimize use of RAM/disk access ?
Date: Sun, 21 Jan 2018 15:49:35 -0800 (PST)
Date: 2018-01-21T15:49:35-08:00	[thread overview]
Message-ID: <7bb39ec5-1e23-4cca-b198-7286818b556a@googlegroups.com> (raw)
In-Reply-To: <18b3920b-3562-4473-9cb0-0fdf15c64e2c@googlegroups.com>

On Sunday, January 21, 2018 at 12:26:17 AM UTC-7, reinert wrote:
> The reason I asked is that I develop the program on a desktop computer where it runs fast. When I run it on a laptop, it goes slow and "free-ing" pointers seems to make it run easier (on the laptop which seems to have slower disk (?)).

The variance of HW isn't something you should be optimizing for on a standard "user-level" program; that's the job of the OS which provides the "general interface" for the program you're writing. (There are exceptions, such as lower-level utilities.)

The best advice I can give, at such a high level (and with as little information as you provided), is to take a look at your algorithms and data-structures and ensure those are appropriate -- in this vein, you can use pools/subpools to free "everything" at that pool's level at once via clever use of scoping.


  reply	other threads:[~2018-01-21 23:49 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-20  6:15 How to optimize use of RAM/disk access ? reinert
2018-01-20  8:45 ` Jacob Sparre Andersen
2018-01-21  7:26   ` reinert
2018-01-21 23:49     ` Shark8 [this message]
2018-01-22  5:53     ` darkestkhan
2018-01-22  8:53 ` gautier_niouzes
2018-01-22 15:01 ` Mr. Man-wai Chang
2018-01-24 15:18 ` Robert Eachus
2018-02-10  5:27   ` reinert
2018-02-10 23:31     ` Robert Eachus
2018-02-11 10:58     ` darkestkhan
2018-02-11 11:38       ` Dmitry A. Kazakov
2018-02-16  4:59         ` reinert
2018-02-16  5:04         ` reinert
2018-02-16  8:18           ` Björn Lundin
2018-02-17  6:15             ` reinert
2018-02-17 18:36               ` Dennis Lee Bieber
2018-02-18 15:21                 ` Björn Lundin
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox