mistercrunch commented on PR #27923:
URL: https://github.com/apache/superset/pull/27923#issuecomment-2050374617

   oh wow!
   - shallow clone is 0m20.222s VS 1m4.067s (3x faster)
   - size of `.git` 35M VS 161M (21% of the space)
   
   GPT-generated benchmark script
   ```bash
   #!/bin/bash
   
   # Repository URL
   REPO_URL="https://github.com/your-repo.git";
   
   # Prevent Git LFS from fetching files during clone
   export GIT_LFS_SKIP_SMUDGE=1
   
   # Function to clone and measure repo size
   clone_and_measure() {
       local branch=$1
       local dir_name="${branch}_clone"
       
       echo "Cloning $branch branch..."
       time git clone --depth 1 --branch $branch $REPO_URL $dir_name
   
       echo "Calculating .git size for $branch branch..."
       du -sh $dir_name/.git
   
       echo "Calculating repository size excluding .git for $branch branch..."
       # Using find to list all files and directories except .git, then 
calculating size with du
       find $dir_name -type d -name .git -prune -o -print | du -ch | tail -n 1
   }
   
   # Clone and measure master branch
   clone_and_measure "master"
   
   # Clone and measure log_queries branch
   clone_and_measure "log_queries"
   
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to