GNU bug report logs - #58669
28.2; bindat: str and strz not operating on vectors

Previous Next

Package: emacs;

Reported by: Nacho Barrientos <nacho.barrientos <at> cern.ch>

Date: Thu, 20 Oct 2022 20:11:02 UTC

Severity: normal

Found in version 28.2

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 58669 <at> debbugs.gnu.org, nacho.barrientos <at> cern.ch
Subject: bug#58669: 28.2; bindat: str and strz not operating on vectors
Date: Fri, 21 Oct 2022 14:34:23 -0400
>> `append` takes the vector, turns it into a list (thus allocating N cons
>> cells), then `apply` turns the list back into an on-stack "vector", and
>> all of that just to create a 4x or 8x smaller string.  It's silly.
>
> It gets the job done, doesn't it?

Indeed, there's a way, but there isn't a *good* way,


        Stefan





This bug report was last modified 2 years and 211 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.