Comments (5)
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.
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.
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.
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.
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)
- Inconsistent merge strategy logging vs counts
- Logback does not work with รผber-JAR HOT 1
- Migrate to `com.github.sbt`? HOT 1
- Assembly no longer creating directories defined in assemblyOutputPath HOT 4
- executable jar args
- Concatenating files without a newline HOT 4
- META-INF/javax.annotation.processing.Processor is included empty when shading is enabled - log4j HOT 1
- Add setting to allow adding arbitrary files to output Jar HOT 1
- Merge error not comprehensible HOT 3
- Definition of a repeatable build HOT 1
- InvalidPathException on Assembly 2.1.1 HOT 13
- Current alternative to assembledMappings HOT 6
- Document log4j2 plugins custom merge strategy HOT 2
- sbt clean assembly fails
- issue with zip64 headers in jars generated using sbt-assembly HOT 1
- Files from project's sources overwrite merged dependencies (2.0.0 regression)
- Shading breaks META-INF/services (1.2.0 regression) HOT 1
- Exception thrown "pomProperties" is null
- Abort build if shading fails HOT 1
- question about Mappings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sbt-assembly.