Giter Club home page Giter Club logo

Comments (10)

iacore avatar iacore commented on June 9, 2024 1

I am not counting git history size. I think Nimble uses --depth 1. Even 35MB is huge for a library.

from pixie.

guzba avatar guzba commented on June 9, 2024

I'm confused:

Which I don't need if I don't want to run tests or use some examples.

So you want us to remove the tests and examples from the repo? Sorry but that is insane, Pixie without tests is never going to happen.

What exactly do you suggest we do (that does not involve not having any tests).

from pixie.

guzba avatar guzba commented on June 9, 2024

My guess is the actual issue is not using git clone --depth 1. Further, you can get the repo from https://github.com/treeform/pixie/releases tarballs or zips in 35MB.

from pixie.

treeform avatar treeform commented on June 9, 2024

I don't see 35MB in my pixie install folder (its just 607.3 KB):

image

Please list files in your ~\.nimble\pkgs\pixie-3.1.4

If you have 35MB there its probably a nimble bug.

from pixie.

SolitudeSF avatar SolitudeSF commented on June 9, 2024

35mb is whats getting downloaded by nimble/git, nimble then installs only relevant files. But 35megs is nothing unless you are on heavily metered connection.

from pixie.

treeform avatar treeform commented on June 9, 2024

If nimble downloads 35mb to keep 600k that's feels like thing nimble should fix?

from pixie.

SolitudeSF avatar SolitudeSF commented on June 9, 2024

dont think thats possible with git

from pixie.

treeform avatar treeform commented on June 9, 2024

I think you can do this with git commands:

git archive --remote=ssh://host/pathto/repo.git HEAD README.md

But I think github blocks that method so one needs to use the non-git HTTP raw file interface:

wget https://raw.githubusercontent.com/treeform/pixie/master/src/pixie.nim

My point if nimble cared enough they would implement are more efficient download.

from pixie.

SolitudeSF avatar SolitudeSF commented on June 9, 2024

I think you can do this with git commands:

git archive --remote=ssh://host/pathto/repo.git HEAD README.md

But I think github blocks that method so one needs to use the non-git HTTP raw file interface:

wget https://raw.githubusercontent.com/treeform/pixie/master/src/pixie.nim

My point if nimble cared enough they would implement are more efficient download.

that wouldnt work, nimble needs to have directory listing to know which files to install, and that would mean that remote host needs some http interface for per file fetching. thats is some insane amount of care required.

from pixie.

guzba avatar guzba commented on June 9, 2024

I think Nimble using --depth 1 and removing unneeded files is a great middle-ground between download size, final space used and dev effort. Pixie is larger than many libraries to download via git specifically because it needs images for testing (it is a graphics library after all). So yeah, who cares about some data that downloaded in a few seconds.

No practical suggestions have been forthcoming so closing this.

from pixie.

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.