Open vsawake opened 1 year ago
See this https://youtu.be/qipIRQptP_4
https://youtu.be/qipIRQptP_4 ~38:00 (more 1:18:00)
Reason for using 1.01 (possible 1.1 would be better)
Test (calculate checksum for all files in /user):
without: ~57s
old version: ~55s files per thread: [ 28800, 26300, 27277, 23000 ] active: [ 18740.3154, 7710.0067, 9252.7903, 6951.1388] idle: [ 35079.1447, 46123.5110, 44574.0218, 46858.2439 ]
new: ~36s files per thread: [ 26522, 37433, 29558, 11897 ] active: [ 24503.9996, 19966.9119, 19960.0115, 28230.7962 ] idle: [ 12138.4605, 16691.6788, 16691.0947, 8414.3918 ]
Create zones with weights depend on current utilization sum previous weight +(1-U)*WIDENING and choose worker depend on random int from 0 to max weight
tests: not sure how to test with random: pls advice, what I need to cover by tests changelog.md: will update if PR will generally approved
npm t
)npm run fmt
)