[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

LTO - shall we? Fwd: [med-svn] [Git][med-team/vsearch][master] Added link-time optimisation



Hello,

Yesterday I revisited the packaging of vienna-rna and saw that upstream
already works with link-time optimisation. That is a good thing,
speed-up is often enormous as in 20% - depending on how cluttered the
source code is, so this saves both time and energy. This works by
reducing code to execute as in

$ dpkg -c ../vsearch_2.13.6-2_amd64.deb # with LTO
...
-rwxr-xr-x root/root    334344 2019-08-03 14:59 ./usr/bin/vsearch
...

$ dpkg -c ../vsearch_2.13.6-1_amd64.deb # current version
...
-rwxr-xr-x root/root    362064 2019-08-03 14:55 ./usr/bin/vsearch
...

So there is some 8% less code - and with a bit of luck this is primarily
where there computation is.

I have not uploaded that -2 version. This is since I am not the regular
maintainer. That is Tim. But it doubt that he wants to have much of say
on this, the package is more team maintained. So I ask the team: Shall
we add LTO when we can feel like it?

Cheers,

Steffen



-------- Forwarded Message --------
Subject: 	[med-svn] [Git][med-team/vsearch][master] Added link-time
optimisation
Date: 	Sat, 03 Aug 2019 13:09:50 +0000
From: 	Steffen Möller <gitlab@salsa.debian.org>
Reply-To: 	noreply@salsa.debian.org
To: 	debian-med-commit@lists.alioth.debian.org



GitLab


      Steffen Möller pushed to branch master at Debian Med / vsearch
      <https://salsa.debian.org/med-team/vsearch>


        Commits:

  * *88a717c4
    <https://salsa.debian.org/med-team/vsearch/commit/88a717c4cd255f926bb8008e9dc2d22cd4c45914>*

    by Steffen Moeller /at 2019-08-03T13:09:08Z/

    Added link-time optimisation


        2 changed files:

  * debian/changelog <#9c96da0e9f91d7d8937b69b524702c106258f0d1>
  * debian/rules <#8756c63497c8dc39f7773438edf53b220c773f67>


        Changes:

# *debian/changelog*
<https://salsa.debian.org/med-team/vsearch/commit/88a717c4cd255f926bb8008e9dc2d22cd4c45914#9c96da0e9f91d7d8937b69b524702c106258f0d1>

------------------------------------------------------------------------

	1

+vsearch (2.13.6-2) UNRELEASED; urgency=medium


	2

+


	3

+* Team upload


	4

+


	5

+* Added link-time optimization.


	6

+


	7

+-- Steffen Moeller <moeller@debian.org> Sat, 03 Aug 2019 14:59:33 +0200


	8

+

1 	9

 vsearch (2.13.6-1) unstable; urgency=medium

2 	10



3 	11

 * Team upload.


# *debian/rules*
<https://salsa.debian.org/med-team/vsearch/commit/88a717c4cd255f926bb8008e9dc2d22cd4c45914#8756c63497c8dc39f7773438edf53b220c773f67>

------------------------------------------------------------------------
... 	... 	@@ -18,6 +18,8 @@ else
18 	18

 endif

19 	19



20 	20

 export DEB_BUILD_MAINT_OPTIONS = hardening=+all


	21

+export DEB_CXXFLAGS_MAINT_APPEND = -flto


	22

+export DEB_LDFLAGS_MAINT_APPEND = -flto

21 	23



22 	24

 %:

23 	25

 dh $@


—
View it on GitLab
<https://salsa.debian.org/med-team/vsearch/commit/88a717c4cd255f926bb8008e9dc2d22cd4c45914>.

You're receiving this email because of your account on salsa.debian.org.
If you'd like to receive fewer emails, you can adjust your notification
settings.

_______________________________________________
debian-med-commit mailing list
debian-med-commit@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply to: