unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>
Cc: guile-devel@gnu.org
Subject: Re: Concurrent MVars for Guile
Date: Tue, 21 Jan 2014 00:38:01 -0500	[thread overview]
Message-ID: <87r481opxi.fsf@netris.org> (raw)
In-Reply-To: <52D9D346.3040800@fuuzetsu.co.uk> (Mateusz Kowalczyk's message of "Sat, 18 Jan 2014 01:05:10 +0000")

Mateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk> writes:

> Thanks for the investigation. While I have not gotten a chance to play
> with this myself, it does seem like your MVar implementation has a sound
> basis.

That's good!  Thanks for making sure we understood the requirements.

> While it'd be great to have someone familiar with the inner-workings to
> step in and confirm your findings, it seems that your implementation
> should work, at least from the scheduling perspective. I can not guess
> what the actual performance might be as I'm not familiar with Guile's
> performance profile but I suppose that's another issue.

I wouldn't expect very high performance from the current implementation,
which was written in Scheme in the most straightforward manner possible,
and built upon fairly heavy "fat" mutexes and condition variables.  I
could write a much faster implementation in C, based on other pthread
primitives and perhaps optimized using primitives from libatomicops, and
perhaps we should do that at some point.

      Mark



      reply	other threads:[~2014-01-21  5:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-02  7:55 Concurrent MVars for Guile Mark H Weaver
2013-09-03 11:55 ` Mark H Weaver
     [not found]   ` <CAGua6m3o_NexANbGuDYd5_rbPQqsbXkK504ONaFE7PGdQd98og@mail.gmail.com>
2013-09-04  6:27     ` Fwd: " Stefan Israelsson Tampe
2013-09-05  2:10 ` David Thompson
2013-09-05  2:53   ` Mark H Weaver
2013-09-14 13:59 ` Ludovic Courtès
2013-09-17 20:18   ` Andy Wingo
2014-01-16  0:47     ` Mark H Weaver
2014-01-16 13:01       ` Ludovic Courtès
2014-01-17  6:33 ` Mateusz Kowalczyk
2014-01-17 19:31   ` Mark H Weaver
2014-01-18  0:46     ` Mark H Weaver
2014-01-18  1:05     ` Mateusz Kowalczyk
2014-01-21  5:38       ` Mark H Weaver [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r481opxi.fsf@netris.org \
    --to=mhw@netris.org \
    --cc=fuuzetsu@fuuzetsu.co.uk \
    --cc=guile-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).