Skip to content

Commit

Permalink
new version with less ram usage stored as exe in 3 formats
Browse files Browse the repository at this point in the history
Signed-off-by: the-other-mariana <mariana.avalos.arce@gmail.com>
  • Loading branch information
the-other-mariana committed Nov 16, 2022
1 parent 99d0b48 commit b0a15f0
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 3 deletions.
20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# cylf
# `cylf`

**`cylf`** will cut your files into binary chunks that can be re-merged together using only the name of the original file.

> This comes in handy when a hosting service has file size limit in the files you upload: with cylf you cut them following the size limit so that upload is allowed, and then in any desired machine you dowload those pieces and merge them using cylf again!
## Usage

1. Download the binary you need.

2. In the same folder you got the binary, store the needed input files/folders.

# Run The Executables

- Inside `bin/` folder, you will find the folders that hold the two executables (cutter + merger) of the program. Currently **`cylf`** is available for:
Expand All @@ -28,6 +34,8 @@ or

depending on the action you want to do. Notice that `<FOLDER_NAME_WITH_PARTS>` is just the name of the folder, not the path.

*Note: if you run `sudo chmod 777 cylf` before any of the two commands above, you can replace `./cylf` with `cylf` inside such commands. Also, if you want the output written to a file, add at the end of the command: ` > output.txt`.

## Windows 10

Open a terminal, go to the directory where the two executables and all the input files are located correctly, and type:
Expand Down Expand Up @@ -72,10 +80,16 @@ depending on the action you want to do

![img](res/sc-v1.png)

### To Cross Compile (Linux -> Win10)
### To Cross Compile The Source Code

Type on the terminal:
- Windows 10

```
GOOS=windows GOARCH=amd64 go build cylf.go
```

- Raspberry Pi 3 Model B

```
GOOS=linux GOARCH=arm go build cylf.go
```
16 changes: 16 additions & 0 deletions benchmarks/mem-usage-v1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[RESOURCES]
Start Memory:
Alloc = 0 MiB | 0.00 MB TotalAlloc = 0 MiB | 0.00 MB Sys = 8 MiB | 8.39 MB NumGC = 0 | 0.00 MB
[PROMPT] File: ./seberg-2019/seberg-2019-merged.mp4
[SUCCESS] Files found: 9
Alloc = 441 MiB | 462.61 MB TotalAlloc = 681 MiB | 714.37 MB Sys = 583 MiB | 611.57 MB NumGC = 4 | 4.20 MB
Alloc = 625 MiB | 655.62 MB TotalAlloc = 1336 MiB | 1401.46 MB Sys = 1014 MiB | 1063.69 MB NumGC = 7 | 7.34 MB
Alloc = 1007 MiB | 1056.34 MB TotalAlloc = 1718 MiB | 1802.18 MB Sys = 1312 MiB | 1376.29 MB NumGC = 7 | 7.34 MB
Alloc = 1188 MiB | 1246.21 MB TotalAlloc = 2620 MiB | 2748.38 MB Sys = 1684 MiB | 1766.52 MB NumGC = 8 | 8.39 MB
Alloc = 1103 MiB | 1157.05 MB TotalAlloc = 3275 MiB | 3435.47 MB Sys = 1684 MiB | 1766.52 MB NumGC = 10 | 10.49 MB
Alloc = 1899 MiB | 1992.05 MB TotalAlloc = 4071 MiB | 4270.48 MB Sys = 2411 MiB | 2529.14 MB NumGC = 10 | 10.49 MB
Alloc = 795 MiB | 833.95 MB TotalAlloc = 4166 MiB | 4370.13 MB Sys = 2411 MiB | 2529.14 MB NumGC = 11 | 11.54 MB
Alloc = 1670 MiB | 1751.83 MB TotalAlloc = 5136 MiB | 5387.66 MB Sys = 2411 MiB | 2529.14 MB NumGC = 12 | 12.59 MB
Alloc = 1677 MiB | 1759.17 MB TotalAlloc = 5143 MiB | 5395.01 MB Sys = 2411 MiB | 2529.14 MB NumGC = 12 | 12.59 MB
End Memory:
Alloc = 1677 MiB | 1759.17 MB TotalAlloc = 5143 MiB | 5395.01 MB Sys = 2411 MiB | 2529.14 MB NumGC = 12 | 12.59 MB
16 changes: 16 additions & 0 deletions benchmarks/mem-usage-v111.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[RESOURCES]
Start Memory:
Alloc = 0 MiB | 0.00 MB TotalAlloc = 0 MiB | 0.00 MB Sys = 8 MiB | 8.39 MB NumGC = 0 | 0.00 MB
[PROMPT] File: ./seberg-2019/seberg-2019-merged.mp4
[SUCCESS] Files found: 9
Alloc = 766 MiB | 803.53 MB TotalAlloc = 766 MiB | 803.53 MB Sys = 801 MiB | 840.25 MB NumGC = 1 | 1.05 MB
Alloc = 766 MiB | 803.53 MB TotalAlloc = 766 MiB | 803.53 MB Sys = 801 MiB | 840.25 MB NumGC = 1 | 1.05 MB
Alloc = 766 MiB | 803.53 MB TotalAlloc = 766 MiB | 803.53 MB Sys = 801 MiB | 840.25 MB NumGC = 1 | 1.05 MB
Alloc = 766 MiB | 803.53 MB TotalAlloc = 766 MiB | 803.53 MB Sys = 801 MiB | 840.25 MB NumGC = 1 | 1.05 MB
Alloc = 766 MiB | 803.53 MB TotalAlloc = 766 MiB | 803.53 MB Sys = 801 MiB | 840.25 MB NumGC = 1 | 1.05 MB
Alloc = 766 MiB | 803.53 MB TotalAlloc = 766 MiB | 803.53 MB Sys = 801 MiB | 840.25 MB NumGC = 1 | 1.05 MB
Alloc = 766 MiB | 803.53 MB TotalAlloc = 766 MiB | 803.53 MB Sys = 801 MiB | 840.25 MB NumGC = 1 | 1.05 MB
Alloc = 766 MiB | 803.53 MB TotalAlloc = 766 MiB | 803.53 MB Sys = 801 MiB | 840.25 MB NumGC = 1 | 1.05 MB
Alloc = 766 MiB | 803.53 MB TotalAlloc = 766 MiB | 803.53 MB Sys = 801 MiB | 840.25 MB NumGC = 1 | 1.05 MB
End Memory:
Alloc = 766 MiB | 803.53 MB TotalAlloc = 766 MiB | 803.53 MB Sys = 801 MiB | 840.25 MB NumGC = 1 | 1.05 MB
16 changes: 16 additions & 0 deletions benchmarks/mem-usage-v112.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[RESOURCES]
Start Memory:
Alloc = 0 MiB | 0.00 MB TotalAlloc = 0 MiB | 0.00 MB Sys = 8 MiB | 8.39 MB NumGC = 0 | 0.00 MB
[PROMPT] File: ./seberg-2019/seberg-2019-merged.mp4
[SUCCESS] Files found: 9
Alloc = 95 MiB | 99.65 MB TotalAlloc = 95 MiB | 99.65 MB Sys = 108 MiB | 113.29 MB NumGC = 1 | 1.05 MB
Alloc = 95 MiB | 99.65 MB TotalAlloc = 190 MiB | 199.31 MB Sys = 209 MiB | 219.24 MB NumGC = 2 | 2.10 MB
Alloc = 95 MiB | 99.65 MB TotalAlloc = 285 MiB | 298.96 MB Sys = 209 MiB | 219.24 MB NumGC = 3 | 3.15 MB
Alloc = 95 MiB | 99.65 MB TotalAlloc = 380 MiB | 398.62 MB Sys = 209 MiB | 219.24 MB NumGC = 4 | 4.20 MB
Alloc = 95 MiB | 99.65 MB TotalAlloc = 475 MiB | 498.27 MB Sys = 209 MiB | 219.24 MB NumGC = 5 | 5.24 MB
Alloc = 95 MiB | 99.65 MB TotalAlloc = 570 MiB | 597.93 MB Sys = 209 MiB | 219.24 MB NumGC = 6 | 6.29 MB
Alloc = 95 MiB | 99.65 MB TotalAlloc = 665 MiB | 697.58 MB Sys = 209 MiB | 219.24 MB NumGC = 7 | 7.34 MB
Alloc = 95 MiB | 99.65 MB TotalAlloc = 760 MiB | 797.24 MB Sys = 209 MiB | 219.24 MB NumGC = 8 | 8.39 MB
Alloc = 101 MiB | 105.95 MB TotalAlloc = 766 MiB | 803.53 MB Sys = 209 MiB | 219.24 MB NumGC = 8 | 8.39 MB
End Memory:
Alloc = 101 MiB | 105.95 MB TotalAlloc = 766 MiB | 803.53 MB Sys = 209 MiB | 219.24 MB NumGC = 8 | 8.39 MB
Binary file modified bin/raspberrypi/cylf
100644 → 100755
Binary file not shown.
Binary file modified bin/ubuntu/cylf
Binary file not shown.
Binary file modified bin/win10/cylf.exe
Binary file not shown.

0 comments on commit b0a15f0

Please sign in to comment.