[metrics-bugs] #25699 [Metrics/Website]: Make `ant war` run faster and the resulting .war file smaller

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu May 3 13:34:47 UTC 2018


#25699: Make `ant war` run faster and the resulting .war file smaller
-----------------------------+--------------------------
 Reporter:  karsten          |          Owner:  iwakeh
     Type:  enhancement      |         Status:  accepted
 Priority:  Medium           |      Milestone:
Component:  Metrics/Website  |        Version:
 Severity:  Normal           |     Resolution:
 Keywords:                   |  Actual Points:
Parent ID:                   |         Points:
 Reviewer:                   |        Sponsor:
-----------------------------+--------------------------

Comment (by karsten):

 I think I found something: I just added `commons-math3-3.6.1.jar` (2.1M)
 to the libs for an unrelated experiment, and the effect on `ant war`
 (which doesn't even use that lib in my experiment) was that it took 97
 seconds as compared to 66 seconds without that lib.

 So, a quick fix might be to look closer which libraries are required in
 the .war file. For example, we could easily remove
 `postgresql-9.4.1212.jar` (636K) from the .war and only use it in the
 .jar. I didn't look much further, but maybe there are other libraries we
 can avoid including in the .war.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25699#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the metrics-bugs mailing list