From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.user Subject: Re: is there a way to serialize hash tables? Date: Sat, 26 Dec 2020 12:13:47 +0100 Message-ID: <20201226111347.GB10618@tuxteam.de> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tjCHc7DPkfUGtrlw" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27241"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Dec 26 12:14:34 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kt7Ws-0006xX-JX for guile-user@m.gmane-mx.org; Sat, 26 Dec 2020 12:14:34 +0100 Original-Received: from localhost ([::1]:33506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kt7Wr-0001KP-JR for guile-user@m.gmane-mx.org; Sat, 26 Dec 2020 06:14:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kt7WO-0001HV-C3 for guile-user@gnu.org; Sat, 26 Dec 2020 06:14:04 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:33644) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1kt7WM-0001pY-6v for guile-user@gnu.org; Sat, 26 Dec 2020 06:14:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=I9djBEzQ884wob8NpiTUjnXHK8TphXxdvdWlvFChMcw=; b=fRtGX7uSe4AhI1wCEu0CTvCOEXapnmwOSVU+dEQA110t8uO7/i8/O0T7ly63u0WC0P6Q7DlDrVK/AHtO8iYkqmkTwSuLXfVApHzcJYIpPLTleWWbK9Hv4MruCIE/Ha9gvdXoIqoXp5emBzRA/mRdD6WVu0N3leubIrlO1mzallTGvh4YSwBarZFKwShJKkQZ2U5L2swh5Q3A++09dRayUGiZ1fE0Z3B4J96nhWmW8g349MANCdz5vHX11SbWNiphG4BIPcbrHvmO2gPg+C24LF9qpvvgaDYU0h8b6sqnR5gTJ1nDKpnWB2eoB01aT/oBAhHrn25YpUmyA7Xv4eLobQ==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1kt7W7-0003lX-Vs for guile-user@gnu.org; Sat, 26 Dec 2020 12:13:48 +0100 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17113 Archived-At: --tjCHc7DPkfUGtrlw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 25, 2020 at 09:27:49PM -0600, Tim Meehan wrote: > I have a big-ish blob of key-value pairs that I would like to not have to > store as text and then convert to a hashtable when I am filtering my data. >=20 > Right now I am saving it as an alist and then converting back to a > hashtable using "alist->hashtable" from SRFI 69. I was just hoping that > there was something more clever ... perhaps it is plenty clever enough. If that "dumping/restoring" seems too expensive (have you measured it?), then another alternative might be to use "external" dictionaries, like guile-dbm [1] or guile-wiredtiger [2]=20 Cheers [1] https://www.gnuvola.org/software/guile-gdbm/ [2] https://guix.gnu.org/packages/guile-wiredtiger-0.7.0/ - t --tjCHc7DPkfUGtrlw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl/nGusACgkQBcgs9XrR2kbiOgCfRbDdDiNHfQJUlG5xbYQG32d7 deAAnRGL4wgnuhZ8WXubtoFhMbWK6Jmy =7Lgk -----END PGP SIGNATURE----- --tjCHc7DPkfUGtrlw--