comp.lang.ada
 help / color / mirror / Atom feed
* Parallel for in instant, Useful strategy ?
@ 2013-01-25 14:46 Patrick
  2013-01-25 15:13 ` Dmitry A. Kazakov
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick @ 2013-01-25 14:46 UTC (permalink / raw)


I don't have any code written concerning this or even planned but I was just curious about something...

Sqlite is actually based on disk writes and not on sockets or some other IPC. It has a reputation for speed when utilized by a single user. Despite the usually frowned upon system calls, it is a well received library.

Assuming the user has a multicore computer, I am curious what would be the factor that slows the program, the overhead of creating multiple threads or the execution of a given single threaded program over the course of a few milliseconds.

I am not really suggesting a rewrite of sqlite but I am wondering, with the rise of multicores computers, whether commands might be better written as parallel programs.

Ada can interface with other languages but if Ada programs could be called as freestanding commands in tandem with other languages it might lower the barrier to entry for new users. Sqlite could be a template to work from.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Parallel for in instant, Useful strategy ?
  2013-01-25 14:46 Parallel for in instant, Useful strategy ? Patrick
@ 2013-01-25 15:13 ` Dmitry A. Kazakov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry A. Kazakov @ 2013-01-25 15:13 UTC (permalink / raw)


On Fri, 25 Jan 2013 06:46:27 -0800 (PST), Patrick wrote:

> I am not really suggesting a rewrite of sqlite but I am wondering, with
> the rise of multicores computers, whether commands might be better written
> as parallel programs.

No. Multicore architecture is a shared-memory one. As such it has an
advantage only in the cases involving computations. In other cases (e.g.
persistence layer) the effect on performance is difficult to predict. It
can well be negative.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-25 15:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-25 14:46 Parallel for in instant, Useful strategy ? Patrick
2013-01-25 15:13 ` Dmitry A. Kazakov

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