Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

No, it’s not always quicker to do things in memory (computer)
ITworld ^ | March 25, 2015 | Phil Johnson

Posted on 03/26/2015 8:27:11 PM PDT by Utilizer

It’s a commonly held belief among software developers that avoiding disk access in favor of doing as much work as possible in-memory will results in shorter runtimes. The growth of big data has made time saving techniques such as performing operations in-memory more attractive than ever for programmers. New research, though, challenges the notion that in-memory operations are always faster than disk-access approaches and reinforces the need for developers to better understand system-level software.

These findings were recently presented by researchers from the University of Calgary and the University of British Columbia in a paper titled When In-Memory Computing is Slower than Heavy Disk Usage. They tested this assumption that working in-memory is necessarily faster than doing lots of disk writes using a simple example. Specifically, they compared the efficiency of alternative ways to create a 1MB string and write it to disk. An in-memory version concatenated strings of fixed sizes (first 1 byte then 10 then 1,000 then 1,000,000 bytes) in-memory, then wrote the result to disk (a single write). The disk-only approach wrote the strings directly to disk (e.g., 1,000,000 writes of 1 bytes strings, 100,000 writes of 10 byte strings, etc.).

(Excerpt) Read more at itworld.com ...


TOPICS: Computers/Internet; Reference
KEYWORDS: computers; computing; disks; memory
Navigation: use the links below to view more comments.
first previous 1-2021-4041-6061-68 next last
To: Utilizer

So cache is not necessarily king?


21 posted on 03/26/2015 9:21:15 PM PDT by Ken H
[ Post Reply | Private Reply | To 1 | View Replies]

To: Squawk 8888

True, but since some systems use SSD drives I think this article brings up some valid points.


22 posted on 03/26/2015 9:25:36 PM PDT by Utilizer (Bacon A'kbar! - In world today are only peaceful people, and the muzlims trying to kill them)
[ Post Reply | Private Reply | To 3 | View Replies]

To: GMMC0987

Especially considering how fast hard drives of today have become.


23 posted on 03/26/2015 9:26:19 PM PDT by Utilizer (Bacon A'kbar! - In world today are only peaceful people, and the muzlims trying to kill them)
[ Post Reply | Private Reply | To 4 | View Replies]

To: FredZarguna

Good post. I have to ask, out of all the devs you’ve run into, what percentage would you say fall into the “good coders” group?


24 posted on 03/26/2015 9:27:46 PM PDT by TheZMan (I am a secessionist.)
[ Post Reply | Private Reply | To 9 | View Replies]

To: kosciusko51
Interesting comments at article. Many saying that the code was poorly written.

This has been a continuing problem over the years. More and more coders are relying upon greater amounts of memory to accomplish their goals instead of streamlining the processes.

25 posted on 03/26/2015 9:28:13 PM PDT by Utilizer (Bacon A'kbar! - In world today are only peaceful people, and the muzlims trying to kill them)
[ Post Reply | Private Reply | To 5 | View Replies]

To: Utilizer

Wait, you mean writing smart, efficient code rules the day? Imagine that.


26 posted on 03/26/2015 9:29:17 PM PDT by TheZMan (I am a secessionist.)
[ Post Reply | Private Reply | To 25 | View Replies]

To: Paladin2

I STILL code in Assembly. :) Thanks for the plug, mate. You want fast, small, and efficient? Assembly code is the way to go!


27 posted on 03/26/2015 9:31:29 PM PDT by Utilizer (Bacon A'kbar! - In world today are only peaceful people, and the muzlims trying to kill them)
[ Post Reply | Private Reply | To 13 | View Replies]

To: Utilizer

Not sure if they’ve improved much since then, but my experience with SSDs has been that they’re significantly slower than disks. That was a few months ago, though...


28 posted on 03/26/2015 9:31:46 PM PDT by Squawk 8888 (Will steal your comments & post them on Twitter)
[ Post Reply | Private Reply | To 22 | View Replies]

To: Utilizer

Yep, assembler is wonderful unless you need the software to be ready before the device is obsolete ;)


29 posted on 03/26/2015 9:33:04 PM PDT by Squawk 8888 (Will steal your comments & post them on Twitter)
[ Post Reply | Private Reply | To 27 | View Replies]

To: ltc8k6

It helps to have an OS that knows not to write overmuch to the disk.


30 posted on 03/26/2015 9:33:10 PM PDT by Utilizer (Bacon A'kbar! - In world today are only peaceful people, and the muzlims trying to kill them)
[ Post Reply | Private Reply | To 20 | View Replies]

To: Utilizer

If millions of instances are going to be run for years, it makes sense to spend more time on the programming to get it efficient. Management is often concerned with having just one or two guys knowlegeable about the magic.....


31 posted on 03/26/2015 9:35:16 PM PDT by Paladin2
[ Post Reply | Private Reply | To 27 | View Replies]

To: Utilizer

Spagetti code was done for good reason.


32 posted on 03/26/2015 9:36:44 PM PDT by Paladin2
[ Post Reply | Private Reply | To 27 | View Replies]

To: ltc8k6

SSDs are faster than disk now? I’ve been out of the loop too long...


33 posted on 03/26/2015 9:37:21 PM PDT by Squawk 8888 (Will steal your comments & post them on Twitter)
[ Post Reply | Private Reply | To 20 | View Replies]

To: Ken H

L1<L2<L3?


34 posted on 03/26/2015 9:39:07 PM PDT by Paladin2
[ Post Reply | Private Reply | To 21 | View Replies]

To: TheZMan

I’ve been in the programming racket for 25 years now and have only met about half a dozen programmers who know how to produce efficient code. The volume of kludges that get rolled out in mission-critical applications is truly frightening.


35 posted on 03/26/2015 9:40:14 PM PDT by Squawk 8888 (Will steal your comments & post them on Twitter)
[ Post Reply | Private Reply | To 24 | View Replies]

To: Utilizer

Game programmers had all sorts of tricks to speed up frequently run code.


36 posted on 03/26/2015 9:41:28 PM PDT by Paladin2
[ Post Reply | Private Reply | To 27 | View Replies]

To: Squawk 8888

Exception handling is always an issue.


37 posted on 03/26/2015 9:42:35 PM PDT by Paladin2
[ Post Reply | Private Reply | To 35 | View Replies]

To: Paladin2

Yep, the worst are the exception handlers that include the “ignore” option.


38 posted on 03/26/2015 9:46:32 PM PDT by Squawk 8888 (Will steal your comments & post them on Twitter)
[ Post Reply | Private Reply | To 37 | View Replies]

To: Squawk 8888
I think that depends on which SSD's are installed. Samsung has their own
software and I use intel SSD's with the Rapid storage and is a huge benefit.

There is one off brand name SSD in the case and it gets no software benefits.

Regardless of that, clocking my i7 CPU to 4.2ghz from even 4.0ghz gives a large increase
in speed that can be seen. The bottleneck is still the same for Video cards, and it's
always been the CPU.

39 posted on 03/26/2015 9:48:58 PM PDT by MaxMax (Pay Attention and you'll be pissed off too! FIRE BOEHNER, NOW!)
[ Post Reply | Private Reply | To 28 | View Replies]

To: Squawk 8888

Road to ruin.....


40 posted on 03/26/2015 9:49:34 PM PDT by Paladin2
[ Post Reply | Private Reply | To 38 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-2021-4041-6061-68 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson