From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Aleix_Conchillo_Flaqu=C3=A9?= Newsgroups: gmane.lisp.guile.user Subject: Re: is there a way to serialize hash tables? Date: Tue, 29 Dec 2020 15:18:49 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38348"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user To: =?UTF-8?Q?Linus_Bj=C3=B6rnstam?= Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Dec 30 00:19:18 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 1kuOGs-0009sh-0j for guile-user@m.gmane-mx.org; Wed, 30 Dec 2020 00:19:18 +0100 Original-Received: from localhost ([::1]:56152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kuOGr-0008SR-2q for guile-user@m.gmane-mx.org; Tue, 29 Dec 2020 18:19:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kuOGg-0008SD-Qu for guile-user@gnu.org; Tue, 29 Dec 2020 18:19:06 -0500 Original-Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]:43171) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kuOGe-0001D4-RP for guile-user@gnu.org; Tue, 29 Dec 2020 18:19:06 -0500 Original-Received: by mail-pg1-x52a.google.com with SMTP id n10so10057851pgl.10 for ; Tue, 29 Dec 2020 15:19:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4bTcbpr6G1L19II1FzJRNFgZA2wLye6i/xxfhaVy/mA=; b=iUiplV64WSONRpiFLlgsuQfbPSHBYhHYllA23EwLeRzEzsBEWNycuwHoqXWbrJ3/uK B16RxOLMiDCUf9LLYvAmL6JT9iC0JAQ9CyuA+k5EJmALu0q+vWldcs8VhGcXjHe6Y45v 5T/N88BtKrEIhj9GHc82XcZIG768Uf+fWHRKrOlajzUvTYQw/yVtUzIinkDtGZlB0ysz xBc9D6MG7c8tTFK5XPWGrzqcjVUuMQ7OxaY20kB9gyQO+ZlmbRwFJYl5d9RzvjTtZT1X IG3WnV4c4UZ4ufadDfvR5+v3IeOAv4dJKMqBM6jsKn2FHX6n7OPeYhJ5ixLs9vbeeL9s ZF8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4bTcbpr6G1L19II1FzJRNFgZA2wLye6i/xxfhaVy/mA=; b=KPnaJ0Zx9lyIYFBEczFKc9IgnbZCMSvqTbB3sVkJGujt5BRVEdmNbweOic563rRDrm 5CG5xjny9hAJADhvd7b1C6pP31bw1TP01V38Go4C7sRh+kdWYtRegxQVqsCJzJqfM7IS BAiJeLJTgC/RTR5NXh3Q3kJBbHTxHGNXxxQ6WjsJfN9kgCwP9k2up2YmlYxWK+lw1L8z oAjJQi21FtEudQfanUeMmv1DkbwrieQ+D/OujiJo7h7Ibf+x5Bf4QwPVGOuTUQnPa/lS iCz7zMDc9gSx05a6x9YUHSoiGZLDv31k28sxK99vqCNkupOcljt5VP9Xj+P0F5u1BVN+ R5Rw== X-Gm-Message-State: AOAM532vhRUJWEAbkExn5lk/Sw261lrQUqWqDZ7GrEFZ66FtCk318vvR lFtwqyynkK9St1LOY6enN5MaaH6IxO3Rp8j9BNA= X-Google-Smtp-Source: ABdhPJxCacVKfchplhL3Im+TC+0PRWirsRw+dfFmbhIfv74CzKpEi1tfpkPmjiy/CcZ8BbmMhzELUWcxnpjm3mG3U5c= X-Received: by 2002:a62:644c:0:b029:1a1:f568:d2d9 with SMTP id y73-20020a62644c0000b02901a1f568d2d9mr47428348pfb.64.1609283942840; Tue, 29 Dec 2020 15:19:02 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=aconchillo@gmail.com; helo=mail-pg1-x52a.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:17135 Archived-At: You almost got it right Linus, it's Aleix. :-) For the curious, it sounds something like "Alaish" or here in the US most people can pronounce it as "Alesh". But more accurately [ale=CA=83] ( https://en.m.wikipedia.org/wiki/Help:IPA/Catalan) Anyways, happy hacking and happy New Year to everyone! Aleix On Sat, Dec 26, 2020, 4:10 AM Linus Bj=C3=B6rnstam wrote: > Alex and I got the speed of guile-json up to about 19megs a second under > guile 3 on a 4 year old intel i5, which may or may not be adequate for yo= ur > needs, Tim. > > I have some code I wrote during that spurt that preforms slightly better > than guile-json in general (about 3-4% on my machine. Alex could not repe= at > those numbers) an on files with many large strings in particular (10% in > extreme cases). If that is interesting I could put it online somewhere. > The functioning code is a derivate work of guile-json, so the GPL applies= . > > -- > Linus Bj=C3=B6rnstam > > On Sat, 26 Dec 2020, at 05:28, John Cowan wrote: > > I think that's the best bet, although JSON is also a possibility. I'm > > working on a more general text-serialization solution, but it will be > quite > > some time before I have a chance to work on it. > > > > On Fri, Dec 25, 2020 at 10:28 PM Tim Meehan wrote: > > > > > I have a big-ish blob of key-value pairs that I would like to not hav= e > to > > > store as text and then convert to a hashtable when I am filtering my > data. > > > > > > 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 th= at > > > there was something more clever ... perhaps it is plenty clever enoug= h. > > > > > > >