zachallaun/mneme

Mneme tar on Hex.pm is over 5mb

Closed this issue · 3 comments

I had a bad internet connection and had troubles to update Mneme with the following message:

* Updating mneme (Hex package)
Request failed (:timeout)
If this happens consistently, adjust your concurrency and timeout settings:

    HEX_HTTP_CONCURRENCY=1 HEX_HTTP_TIMEOUT=120 mix deps.get
** (Mix) Package fetch failed and no cached copy available (https://repo.hex.pm/tarballs/mneme-0.2.3.tar)

The fix here is easy, bump up the timeout time. But the question is: do we need over 5mb of sourcefiles to install mneme?

I think the GIF file in the priv folder makes the major part of this 5mb. Maybe we can move it from priv to another folder, so it does not get bundled with the release? Just an idea.

wget https://repo.hex.pm/tarballs/mneme-0.2.3.tar
--2023-03-25 19:12:37--  https://repo.hex.pm/tarballs/mneme-0.2.3.tar
Resolving repo.hex.pm (repo.hex.pm)... 146.75.122.2
Connecting to repo.hex.pm (repo.hex.pm)|146.75.122.2|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5512704 (5,3M) [application/octet-stream]
Saving to: ‘mneme-0.2.3.tar’

mneme-0.2.3.tar                                    100%[================================================================================================================>]   5,26M   272KB/s    in 18s

2023-03-25 19:12:56 (291 KB/s) - ‘mneme-0.2.3.tar’ saved [5512704/5512704]

👍 Will work on this!

Also, and honestly embarrassed that I missed this, but there's a problem in 0.2.3 that I think makes it unusable. Will fix & update shortly.

Edit: actually, hopefully it's just my test that's bad. We'll see.

Give 0.2.5 a shot. Looks like it's down to 37KB now. 😄

Thanks a lot!