Bug#877418: dh-strip-nondeterminism: kills clojure performance
Rob Browning
rlb at defaultvalue.org
Sun Oct 1 15:50:21 UTC 2017
Package: dh-strip-nondeterminism
Version: 0.034-1
I noticed that Debian's clojure-1.8.0.jar had terrible performance as
compared to both the upstream jar and one built manually via the "mvn
package" or ant process, and after some investigation, I think I've
tracked it down to dh-strip-nondeterminism.
Given the current clojure 1.8.0-2 source tree, adding this to
debian/rules:
# Ask clojure to do nothing
define timeclj
time java -cp debian/libclojure-java/usr/share/java/clojure-1.8.0.jar \
clojure.main -e ''
endef
override_dh_strip_nondeterminism:
$(timeclj)
dh_strip_nondeterminism
$(timeclj)
and then running "fakeroot debian/rules binary" produces this:
time java -cp debian/libclojure-java/usr/share/java/clojure-1.8.0.jar clojure.main -e ''
real 0m0.919s
user 0m1.739s
sys 0m0.064s
dh_strip_nondeterminism
time java -cp debian/libclojure-java/usr/share/java/clojure-1.8.0.jar clojure.main -e ''
real 0m4.064s
user 0m12.204s
sys 0m0.140s
Thanks
--
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
More information about the Reproducible-builds
mailing list