ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:96644] [Ruby master Bug#16477] readline-ext repository is huge
       [not found] <redmine.issue-16477.20200103190437@ruby-lang.org>
@ 2020-01-03 19:04 ` wolf
  2020-01-03 23:43 ` [ruby-core:96646] " eregontp
  2020-01-05  2:27 ` [ruby-core:96670] " aycabta
  2 siblings, 0 replies; 3+ messages in thread
From: wolf @ 2020-01-03 19:04 UTC (permalink / raw)
  To: ruby-core

Issue #16477 has been reported by graywolf (Gray Wolf).

----------------------------------------
Bug #16477: readline-ext repository is huge
https://bugs.ruby-lang.org/issues/16477

* Author: graywolf (Gray Wolf)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: n/a
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
Today I've cloned (my fresh new fork) of readline-ext

```
+   $ git clone git@github.com:graywolf/readline-ext.git
Cloning into 'readline-ext'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 389416 (delta 0), reused 1 (delta 0), pack-reused 389413
Receiving objects: 100% (389416/389416), 167.29 MiB | 2.83 MiB/s, done.
Resolving deltas: 100% (296077/296077), done.
```

~170 MB repository just for readline gem is way too huge. It is caused
by presence of following tags in the repository:

```
v1_0_r2
v1_8_7
v2_0_0_rc1
v2_1_0_rc1
v2_2_0_rc1
v2_7_0_preview1
v2_7_0_preview2
v2_7_0_preview3
v2_7_0_rc1
v2_7_0_rc2
```

Deleting them and running `git gc`

```
$ git tag --delete v1_0_r2 v1_8_7 v2_0_0_rc1 v2_1_0_rc1 v2_2_0_rc1 v2_7_0_preview1 v2_7_0_preview2 v2_7_0_preview3 v2_7_0_rc1 v2_7_0_rc2
Deleted tag 'v1_0_r2' (was 3db12e8b23)
Deleted tag 'v1_8_7' (was c36252fca2)
Deleted tag 'v2_0_0_rc1' (was ca6ccd436b)
Deleted tag 'v2_1_0_rc1' (was 9881a183bd)
Deleted tag 'v2_2_0_rc1' (was 050b43acce)
Deleted tag 'v2_7_0_preview1' (was c55db6aa27)
Deleted tag 'v2_7_0_preview2' (was 02aadf1032)
Deleted tag 'v2_7_0_preview3' (was b563439274)
Deleted tag 'v2_7_0_rc1' (was 8a40dce0ff)
Deleted tag 'v2_7_0_rc2' (was 75acbd5f00)
$ git gc --aggressive --prune=now
Enumerating objects: 1505, done.
Counting objects: 100% (1505/1505), done.
Delta compression using up to 4 threads
Compressing objects: 100% (1168/1168), done.
Writing objects: 100% (1505/1505), done.
Total 1505 (delta 584), reused 921 (delta 0)
Computing commit graph generation numbers: 100% (285/285), done.
$ du -sh .git
372K    .git
```

gets the repo down to few hundred kilobytes. So imho you should really drop
those tags since there is no need to hold whole ruby source code in this
repository. Just something to consider.




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:96646] [Ruby master Bug#16477] readline-ext repository is huge
       [not found] <redmine.issue-16477.20200103190437@ruby-lang.org>
  2020-01-03 19:04 ` [ruby-core:96644] [Ruby master Bug#16477] readline-ext repository is huge wolf
@ 2020-01-03 23:43 ` eregontp
  2020-01-05  2:27 ` [ruby-core:96670] " aycabta
  2 siblings, 0 replies; 3+ messages in thread
From: eregontp @ 2020-01-03 23:43 UTC (permalink / raw)
  To: ruby-core

Issue #16477 has been updated by Eregon (Benoit Daloze).

Assignee set to aycabta (aycabta .)

For the record, you mean this repository:
https://github.com/ruby/readline-ext

@aycabta @hsbt It sounds good to drop those tags to reduce repository size.

----------------------------------------
Bug #16477: readline-ext repository is huge
https://bugs.ruby-lang.org/issues/16477#change-83616

* Author: graywolf (Gray Wolf)
* Status: Open
* Priority: Normal
* Assignee: aycabta (aycabta .)
* Target version: 
* ruby -v: n/a
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
Today I've cloned (my fresh new fork) of readline-ext

```
+   $ git clone git@github.com:graywolf/readline-ext.git
Cloning into 'readline-ext'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 389416 (delta 0), reused 1 (delta 0), pack-reused 389413
Receiving objects: 100% (389416/389416), 167.29 MiB | 2.83 MiB/s, done.
Resolving deltas: 100% (296077/296077), done.
```

~170 MB repository just for readline gem is way too huge. It is caused
by presence of following tags in the repository:

```
v1_0_r2
v1_8_7
v2_0_0_rc1
v2_1_0_rc1
v2_2_0_rc1
v2_7_0_preview1
v2_7_0_preview2
v2_7_0_preview3
v2_7_0_rc1
v2_7_0_rc2
```

Deleting them and running `git gc`

```
$ git tag --delete v1_0_r2 v1_8_7 v2_0_0_rc1 v2_1_0_rc1 v2_2_0_rc1 v2_7_0_preview1 v2_7_0_preview2 v2_7_0_preview3 v2_7_0_rc1 v2_7_0_rc2
Deleted tag 'v1_0_r2' (was 3db12e8b23)
Deleted tag 'v1_8_7' (was c36252fca2)
Deleted tag 'v2_0_0_rc1' (was ca6ccd436b)
Deleted tag 'v2_1_0_rc1' (was 9881a183bd)
Deleted tag 'v2_2_0_rc1' (was 050b43acce)
Deleted tag 'v2_7_0_preview1' (was c55db6aa27)
Deleted tag 'v2_7_0_preview2' (was 02aadf1032)
Deleted tag 'v2_7_0_preview3' (was b563439274)
Deleted tag 'v2_7_0_rc1' (was 8a40dce0ff)
Deleted tag 'v2_7_0_rc2' (was 75acbd5f00)
$ git gc --aggressive --prune=now
Enumerating objects: 1505, done.
Counting objects: 100% (1505/1505), done.
Delta compression using up to 4 threads
Compressing objects: 100% (1168/1168), done.
Writing objects: 100% (1505/1505), done.
Total 1505 (delta 584), reused 921 (delta 0)
Computing commit graph generation numbers: 100% (285/285), done.
$ du -sh .git
372K    .git
```

gets the repo down to few hundred kilobytes. So imho you should really drop
those tags since there is no need to hold whole ruby source code in this
repository. Just something to consider.




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:96670] [Ruby master Bug#16477] readline-ext repository is huge
       [not found] <redmine.issue-16477.20200103190437@ruby-lang.org>
  2020-01-03 19:04 ` [ruby-core:96644] [Ruby master Bug#16477] readline-ext repository is huge wolf
  2020-01-03 23:43 ` [ruby-core:96646] " eregontp
@ 2020-01-05  2:27 ` aycabta
  2 siblings, 0 replies; 3+ messages in thread
From: aycabta @ 2020-01-05  2:27 UTC (permalink / raw)
  To: ruby-core

Issue #16477 has been updated by aycabta (aycabta .).

Status changed from Open to Closed

Sorry, those tags ware mixed into the ruby/readline-ext repository when I cherry-pick-ed from ruby/ruby. I removed it.

----------------------------------------
Bug #16477: readline-ext repository is huge
https://bugs.ruby-lang.org/issues/16477#change-83652

* Author: graywolf (Gray Wolf)
* Status: Closed
* Priority: Normal
* Assignee: aycabta (aycabta .)
* Target version: 
* ruby -v: n/a
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
Today I've cloned (my fresh new fork) of readline-ext

```
+   $ git clone git@github.com:graywolf/readline-ext.git
Cloning into 'readline-ext'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 389416 (delta 0), reused 1 (delta 0), pack-reused 389413
Receiving objects: 100% (389416/389416), 167.29 MiB | 2.83 MiB/s, done.
Resolving deltas: 100% (296077/296077), done.
```

~170 MB repository just for readline gem is way too huge. It is caused
by presence of following tags in the repository:

```
v1_0_r2
v1_8_7
v2_0_0_rc1
v2_1_0_rc1
v2_2_0_rc1
v2_7_0_preview1
v2_7_0_preview2
v2_7_0_preview3
v2_7_0_rc1
v2_7_0_rc2
```

Deleting them and running `git gc`

```
$ git tag --delete v1_0_r2 v1_8_7 v2_0_0_rc1 v2_1_0_rc1 v2_2_0_rc1 v2_7_0_preview1 v2_7_0_preview2 v2_7_0_preview3 v2_7_0_rc1 v2_7_0_rc2
Deleted tag 'v1_0_r2' (was 3db12e8b23)
Deleted tag 'v1_8_7' (was c36252fca2)
Deleted tag 'v2_0_0_rc1' (was ca6ccd436b)
Deleted tag 'v2_1_0_rc1' (was 9881a183bd)
Deleted tag 'v2_2_0_rc1' (was 050b43acce)
Deleted tag 'v2_7_0_preview1' (was c55db6aa27)
Deleted tag 'v2_7_0_preview2' (was 02aadf1032)
Deleted tag 'v2_7_0_preview3' (was b563439274)
Deleted tag 'v2_7_0_rc1' (was 8a40dce0ff)
Deleted tag 'v2_7_0_rc2' (was 75acbd5f00)
$ git gc --aggressive --prune=now
Enumerating objects: 1505, done.
Counting objects: 100% (1505/1505), done.
Delta compression using up to 4 threads
Compressing objects: 100% (1168/1168), done.
Writing objects: 100% (1505/1505), done.
Total 1505 (delta 584), reused 921 (delta 0)
Computing commit graph generation numbers: 100% (285/285), done.
$ du -sh .git
372K    .git
```

gets the repo down to few hundred kilobytes. So imho you should really drop
those tags since there is no need to hold whole ruby source code in this
repository. Just something to consider.




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-05  2:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-16477.20200103190437@ruby-lang.org>
2020-01-03 19:04 ` [ruby-core:96644] [Ruby master Bug#16477] readline-ext repository is huge wolf
2020-01-03 23:43 ` [ruby-core:96646] " eregontp
2020-01-05  2:27 ` [ruby-core:96670] " aycabta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).