GNU bug report logs -
#42998
27.1; gnutls-symmetric-encrypt slow when providing cipher as symbol
Previous Next
Reported by: Vasilij Schneidermann <mail <at> vasilij.de>
Date: Sun, 23 Aug 2020 16:44:02 UTC
Severity: normal
Tags: fixed
Found in version 27.1
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Mon, 24 Aug 2020 15:01:01 +0200
> Cc: 42998 <at> debbugs.gnu.org
>
> Vasilij Schneidermann <mail <at> vasilij.de> writes:
>
> > I'd consider either to
> > document this behavior or making the mapping more efficient, for example
> > by caching the cipher list instead of recomputing it over and over
> > again.
>
> The following fixes the problem, but I'm not quite sure whether it's
> correct... Is initialising a Lisp_Object to NULL something that's
> allowed over all platforms?
Since Lisp_Object is not really a pointer, at least not in all builds,
this might work, but is fragile, and thus not recommended.
> I can't initialise it to the more natural Qnil, since that's not a
> constant, C-wise.
Such initializations shall be done in the syms_of_* functions, in this
case syms_of_gnutls -- those run at build time, and are recorded in
the dumped memory. yes, that means the static variable will not be
private to the function, but I don't think it's a problem. I think
it'd also allow you to staticpro the variable only once.
Thanks.
This bug report was last modified 4 years and 313 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.