Coder Social home page Coder Social logo

This repo is getting HUGE! about hwsensors HOT 9 CLOSED

cozmonate avatar cozmonate commented on July 18, 2024
This repo is getting HUGE!

from hwsensors.

Comments (9)

CozmoNate avatar CozmoNate commented on July 18, 2024

Should be better now, only 34mb... But... No more HWSensors.pkg inside

from hwsensors.

RehabMan avatar RehabMan commented on July 18, 2024

Super. Let me know where you plan to put binaries from now on? Since github deprecated the upload/download capability, I'm looking for an alternative for my project builds too. So far, I've found google code, but haven't tried it yet.

from hwsensors.

RehabMan avatar RehabMan commented on July 18, 2024

Well, it is better, now 150MB:

localhost:Projects Admin$ rm -rf kozlek.git/
localhost:Projects Admin$ git clone git://github.com/kozlek/HWSensors.git kozlek.git
Cloning into 'kozlek.git'...
remote: Counting objects: 16942, done.
remote: Compressing objects: 100% (4179/4179), done.
remote: Total 16942 (delta 8692), reused 16806 (delta 8557)
Receiving objects: 100% (16942/16942), 149.17 MiB | 605 KiB/s, done.
Resolving deltas: 100% (8692/8692), done.
localhost:Projects Admin$ 

I use this script to analyse:

#!/bin/bash
#set -x 

# Shows you the largest objects in your repo's pack file.
# Written for osx.
#
# @see http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/
# @author Antony Stubbs

# set the internal field spereator to line break, so that we can iterate easily over the verify-pack output
IFS=$'\n';

# list all objects including their size, sort by size, take top 10
objects=`git verify-pack -v .git/objects/pack/pack-*.idx | grep -v chain | sort -k3nr | head -n 500`

echo "All sizes are in kB's. The pack column is the size of the object, compressed, inside the pack file."

output="size,pack,SHA,location"
for y in $objects
do
    # extract the size in bytes
    size=$((`echo $y | cut -f 5 -d ' '`/1024))
    # extract the compressed size in bytes
    compressedSize=$((`echo $y | cut -f 6 -d ' '`/1024))
    # extract the SHA
    sha=`echo $y | cut -f 1 -d ' '`
    # find the objects location in the repository tree
    other=`git rev-list --all --objects | grep $sha`
    #lineBreak=`echo -e "\n"`
    output="${output}\n${size},${compressedSize},${other}"
done

echo -e $output | column -t -s ', '

I don't know. Maybe there is nothing that can be done...

from hwsensors.

CozmoNate avatar CozmoNate commented on July 18, 2024

Hmm... It was only 34 mb after cleanup, but now I see my HWSensors folder is 320mb!

from hwsensors.

CozmoNate avatar CozmoNate commented on July 18, 2024

Cloned from assembla - 34mb! So cleanup was ok, maybe I need to forced update project on GitHub someway?

from hwsensors.

RehabMan avatar RehabMan commented on July 18, 2024

Do you have a mirror somewhere?

from hwsensors.

CozmoNate avatar CozmoNate commented on July 18, 2024

https://www.assembla.com/code/fakesmc/git/nodes

from hwsensors.

RehabMan avatar RehabMan commented on July 18, 2024

Thanks, I'll setup assembla repo as a remote from now on. Down to 26MB compressed:

localhost:Projects Admin$ git clone git://git.assembla.com/fakesmc.git kozlek.git
Cloning into 'kozlek.git'...
remote: Counting objects: 15998, done.
remote: Compressing objects: 100% (3628/3628), done.
remote: Total 15998 (delta 8185), reused 15967 (delta 8164)
Receiving objects: 100% (15998/15998), 26.58 MiB | 375 KiB/s, done.
Resolving deltas: 100% (8185/8185), done.

Still a lot of junk in there which you will see if you run that script (posted above), but it is much much better. I don't know git that well, so sorry I can help you with how the heck you git your github mirror to pick up the deletions...

from hwsensors.

RehabMan avatar RehabMan commented on July 18, 2024

BTW, bummer that rewriting the history like this completely messes up any forks already created, because almost every commit is rewritten. I didn't have much that I needed/wanted to keep, so I just re-created using the one at assembla.

from hwsensors.

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.