GNU bug report logs -
#59177
[PATCH] python-protobuf: Use C++ implementation
Previous Next
Reported by: <Ontje.Luensdorf <at> dlr.de>
Date: Thu, 10 Nov 2022 16:51:03 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59177 in the body.
You can then email your comments to 59177 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#59177
; Package
guix-patches
.
(Thu, 10 Nov 2022 16:51:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
<Ontje.Luensdorf <at> dlr.de>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 10 Nov 2022 16:51:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Guix,
this patch configures python-protobuf to use the C++ protobuf
implementation. This additional dependency pays off with a 10x
performance improvement in some of my workloads.
Best regards,
Ontje
[0001-gnu-python-protobuf-Use-C-implementation.patch (text/x-patch, attachment)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#59177
; Package
guix-patches
.
(Mon, 28 Nov 2022 21:59:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 59177 <at> debbugs.gnu.org (full text, mbox):
Hi,
<Ontje.Luensdorf <at> dlr.de> skribis:
> this patch configures python-protobuf to use the C++ protobuf
> implementation. This additional dependency pays off with a 10x
> performance improvement in some of my workloads.
Impressive. It would be nice to have that info as a comment in the code
for future reference.
> From f2675cccf54d2bb1291ba1614ca44966730734e1 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Ontje=20L=C3=BCnsdorf?= <ontje.luensdorf <at> dlr.de>
> Date: Thu, 10 Nov 2022 09:11:11 +0100
> Subject: [PATCH] gnu: python-protobuf: Use C++ implementation.
>
> * gnu/packages/protobuf.scm (python-protobuf): Use C++ implementation.
> [propagated-inputs]: Add protobuf.
> [arguments]: Add --cpp_implementation configure flags.
> ---
> gnu/packages/protobuf.scm | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm
> index 1448691a42..9be35783fb 100644
> --- a/gnu/packages/protobuf.scm
> +++ b/gnu/packages/protobuf.scm
> @@ -393,6 +393,9 @@ (define-public python-protobuf
> (base32
> "1ja2vpk9nklllmsirmil2s4l7ni9yfqvbvj47zz5xx17s1k1bhxd"))))
> (build-system python-build-system)
> + (propagated-inputs (list protobuf))
Does it really need to be propagated? Would be nice if this could be
avoided, for instance by adding a phase that hardcodes the absolute file
name of the protobuf shared library, if that’s the reason why it’s being
propagated. And if we really have to propagate it, then it’d be nice
to clarify what. WDYT?
Thanks,
Ludo’.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#59177
; Package
guix-patches
.
(Tue, 29 Nov 2022 08:24:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 59177 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Ludovic,
Ludovic Courtès <ludo <at> gnu.org> writes:
> Impressive. It would be nice to have that info as a comment in the code
> for future reference.
...
> Does it really need to be propagated? Would be nice if this could be
> avoided, for instance by adding a phase that hardcodes the absolute file
> name of the protobuf shared library, if that’s the reason why it’s being
> propagated. And if we really have to propagate it, then it’d be nice
> to clarify what. WDYT?
you are right, it doesn't need to be propagated, the python shared
object paths look good if inputs is used instead of propagated-inputs
(thanks, good to know :)
$ ldd /gnu/store/r6lxp1x9lj0a4980730pyd44mcvqv8pr-python-protobuf-3.20.1/lib/python3.9/site-packages/google/protobuf/pyext/_message.cpython-39-x86_64-linux-gnu.so
linux-vdso.so.1 (0x00007ffe50ba5000)
libprotobuf.so.32 => /gnu/store/75d8pq1yxixr10dxfw59lv8k294nrck5-protobuf-3.21.9/lib/libprotobuf.so.32 (0x00007ffa6b600000)
...
I've also added a comment in the updated patch below.
Thanks & best regards,
Ontje
[0001-gnu-python-protobuf-Use-C-implementation.patch (text/x-patch, attachment)]
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Fri, 02 Dec 2022 13:15:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
<Ontje.Luensdorf <at> dlr.de>
:
bug acknowledged by developer.
(Fri, 02 Dec 2022 13:15:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 59177-done <at> debbugs.gnu.org (full text, mbox):
Hi,
<Ontje.Luensdorf <at> dlr.de> skribis:
> From a1f443dcf7ad1e222a9796441f6d96425dbfe787 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Ontje=20L=C3=BCnsdorf?= <ontje.luensdorf <at> dlr.de>
> Date: Thu, 10 Nov 2022 09:11:11 +0100
> Subject: [PATCH] gnu: python-protobuf: Use C++ implementation.
>
> * gnu/packages/protobuf.scm (python-protobuf): Use C++ implementation.
> [inputs]: Add protobuf.
> [arguments]: Add --cpp_implementation configure flags.
Perfect. Applied, thanks!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 31 Dec 2022 12:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 168 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.