From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: crypt mutex Date: Sun, 21 Mar 2004 08:51:57 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <878yhv3zea.fsf@zip.com.au> References: <87znbdi85m.fsf@zip.com.au> <87znb98v9x.fsf@zagadka.ping.de> <87hdwjnnxq.fsf@zagadka.ping.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1079823265 13283 80.91.224.253 (20 Mar 2004 22:54:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 20 Mar 2004 22:54:25 +0000 (UTC) Cc: djurfeldt@nada.kth.se, guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Mar 20 23:54:17 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B4pM9-0007yo-00 for ; Sat, 20 Mar 2004 23:54:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B4pLB-0000A5-2A for guile-devel@m.gmane.org; Sat, 20 Mar 2004 17:53:17 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B4pKn-00005T-Oh for guile-devel@gnu.org; Sat, 20 Mar 2004 17:52:53 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B4pKC-0008Rz-7v for guile-devel@gnu.org; Sat, 20 Mar 2004 17:52:47 -0500 Original-Received: from [61.8.0.85] (helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B4pKB-0008Rb-1Q for guile-devel@gnu.org; Sat, 20 Mar 2004 17:52:15 -0500 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86]) by mailout2.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i2KMq95v027642; Sun, 21 Mar 2004 09:52:09 +1100 Original-Received: from localhost (ppp199.dyn248.pacific.net.au [203.143.248.199]) by mailproxy1.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i2KMq7bq016690; Sun, 21 Mar 2004 09:52:08 +1100 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1B4pJt-0002Wm-00; Sun, 21 Mar 2004 08:51:57 +1000 Original-To: Marius Vollmer Mail-Copies-To: never In-Reply-To: <87hdwjnnxq.fsf@zagadka.ping.de> (Marius Vollmer's message of "Sat, 20 Mar 2004 23:39:13 +0100") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3543 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3543 Marius Vollmer writes: > > Yes, that is what I meant. But, if making a function be reentrant > takes a mutex then we should not hesitate to use one. Speaking of mutexes, the reason I haven't checked in what I posted is that I'm wondering if crypt should have its own private mutex. A mutex for every function seems a bit wasteful, even if it would give maximum parallelism. I'm thinking crypt is cpu-only and not often run, so might as well share a single global mutex. Incidentally, crypt_r measures significantly slower (about 5x) than crypt, presumably because it does various initializations, so I'm thinking not to use that. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel