Code Monkey home page Code Monkey logo

Comments (9)

nh13 avatar nh13 commented on August 21, 2024

This is motivated by trying to keep the JAR size of fgbio as small as possible. fulcrumgenomics/fgbio#483. Another idea that could help is having the inflater/deflater parts of the code in a separate JAR than the SW/HMM portions, so we don't have to include the latter.

Examining the size of the dependencies included (using this gist) we see:

Total dependencies size:                           4.52 Mb

htsjdk-2.9.0.jar                               1,528.30 kb
log4j-core-2.5.jar                             1,080.17 kb
snappy-java-1.0.3-rc3.jar                        967.05 kb
commons-jexl-2.1.1.jar                           261.36 kb
commons-compress-1.4.1.jar                       235.71 kb
commons-io-2.4.jar                               180.80 kb
log4j-api-2.5.jar                                143.32 kb
xz-1.5.jar                                        97.22 kb
ngs-java-1.2.4.jar                                72.40 kb
commons-logging-1.1.1.jar                         59.26 kb
gatk-native-bindings-0.1.0-rc-1.jar                6.33 kb

from gkl.

nh13 avatar nh13 commented on August 21, 2024

Could we not just use commons-logging, or the logging in htsjdk?

from gkl.

rpomaris avatar rpomaris commented on August 21, 2024

Hi @nh13 - thanks for the input. We're reviewing this suggestion this week. I don't see any issue with logging elsewhere as you suggest. Which GKL components does fgbio use? The Deflater?

from gkl.

nh13 avatar nh13 commented on August 21, 2024

@mepowers we are starting to use the inflater and deflater. This was also an issue in GATK and Picard (broadinstitute/picard#883). They solved it by adding a configuration file and muting the logging, but that means they also include the log4j transitive dependency, making the JAR they distribute larger.

from gkl.

pditommaso avatar pditommaso commented on August 21, 2024

Log4j can be replaced with the log4j-over-slf4j bridge API and the redirected to the Java stock logging API using the slf4j-jdk14 adaptor. See for details here.

from gkl.

nh13 avatar nh13 commented on August 21, 2024

@pdtommaso thank-you! I did see that but I am trying to reduce the number of dependencies so I am not thrilled to include a few more to bridge the logging frameworks. I’ll look how much size they add.

from gkl.

rpomaris avatar rpomaris commented on August 21, 2024

@nh13 - we discussed this internally as a team today and unfortunately updating the logging isn't a priority right now. We do not have plans to change this.

from gkl.

nh13 avatar nh13 commented on August 21, 2024

Would you accept a PR to remove logging?

from gkl.

rpomaris avatar rpomaris commented on August 21, 2024

@nh13 - we wouldn't. We're only requesting PRs for bug fixes.

from gkl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.