GithubHelp home page GithubHelp logo

Ability to prevent Caching? about sbt-assembly HOT 5 CLOSED

sbt avatar sbt commented on July 23, 2024
Ability to prevent Caching?

from sbt-assembly.

Comments (5)

eed3si9n avatar eed3si9n commented on July 23, 2024

The generated cache grows to a total of 2GB!

As noted in #66, I think the problem is tempDir not getting cleaned up afterwards.

from sbt-assembly.

hrjet avatar hrjet commented on July 23, 2024

Well to clarify, the size is not a problem by itself. (I have ample free space on the file system).
But the disk I/O slows down the build to a crawl (compared to what it could be).
Hence cleaning up will not solve the speed problem (on the other hand might exacerbate it).

One possible solution: Would it be feasible to expand jars in memory? I think this might also enable sharing jars across projects without complicating it too much.

from sbt-assembly.

eed3si9n avatar eed3si9n commented on July 23, 2024

Hence cleaning up will not solve the speed problem

I'm closing this case then.

Would it be feasible to expand jars in memory?

Given that the user could have hundreds of library jars, I can't reliably assume that there's enough memory allocated to sbt.

from sbt-assembly.

hrjet avatar hrjet commented on July 23, 2024

I would suggest not closing these issues too soon. Perhaps in future, we or someone else might get better ideas.

Given that the user could have hundreds of library jars, I can't reliably assume that there's enough memory allocated to sbt.

What if there was a setting to switch between on-disk-expansion v/s in-memory expansion? And the default would be on-disk-expansion.

from sbt-assembly.

eed3si9n avatar eed3si9n commented on July 23, 2024

I'd like to use issues for actionable items and clearly defined defects or feature requests.

This case was opened asking about caching. Since it's looking like it's more of a performance issue, which is not a caching issue, I thought the case has done its job.

I'd be happy to review pull req that toggles in-memory expansion, or maybe you could start a discussion on sbt mailing list to get more ideas from others.

from sbt-assembly.

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.