Commit graph

17 commits

Author SHA1 Message Date
279e72a694 Extract nested loops and funtions into own functions 2020-10-22 17:13:32 +02:00
9a3daec2be Rename func splitFilesIntoParts to splitArrayIntoParts with inner vars
The name is now more descriptive and easier to understand.
2020-10-22 16:55:11 +02:00
73f18d87a9 Change splitting to try to split into as many parts as possible
Now if you give it 10 files and tell it to split it into 3 parts
it will not longer split it into 2 parts. It will split it into 3
parts and add the remaining files to the first part -> the first part
will have in this case one file more than the rest.
This and some other cases are now covered by tests.
2020-10-22 16:41:10 +02:00
82777ccafa Rename getFilesForEachCPUCore to splitFilesIntoParts
Refactor test to be easier to read.
2020-10-22 16:25:45 +02:00
56d9df6aaa Improve performance by reducing the total amount of goroutines
With this change it will no longer start for each file a goroutine
it will start fewer goroutines and never more than the system
cpu cores count. This will increase the performance on single core systems because
it won't create unnessesary goroutines and multi core systems will still
benefit from the reduced amount of goroutines.
2020-10-22 13:06:02 +02:00
56fdc9c12a Change to gather the results for each file aynchronously 2020-10-21 22:05:13 +02:00
Garrett Squire
2310d1811f
update Go versions for Travis (#5) 2020-05-15 12:24:17 -07:00
Garrett Squire
62d41c3f6e
update go versions 2020-01-16 09:07:33 -08:00
Garrett Squire
3c98da27f7
update to latest Go version 2019-03-08 15:44:05 -08:00
Ilia Choly
a920747a56 update visitor approach
fix corner cases and switch to table driven tests for positive cases
2018-10-29 20:56:16 -07:00
Garrett Squire
adb0f52593
fix the wording (#1) 2018-10-22 12:02:07 -07:00
Garrett Squire
fc7cb2784e add the build badge 2018-10-19 17:18:01 -07:00
Garrett Squire
0820875aa3 add a README 2018-10-19 17:16:17 -07:00
Garrett Squire
a0375536ab turn off emails 2018-10-19 17:09:10 -07:00
Garrett Squire
48c6f2289a i forgot how cool YAML is 2018-10-19 17:07:47 -07:00
Garrett Squire
1f1221e4fa add the source in 2018-10-19 17:05:41 -07:00
Garrett Squire
4203553b4c
Initial commit 2018-10-19 16:38:21 -07:00