-
Notifications
You must be signed in to change notification settings - Fork 0
Added MD5 #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Added MD5 #4
Conversation
dzharkov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Итого: 8/10
| long endSingleTime = System.nanoTime(); | ||
| long startMultiTime = System.nanoTime(); | ||
| try { | ||
| hashSingleThread(root); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Извиняюсь, за занудство, но тут не тот метод явно.
С одной стороны это простая человеческая невнимательность и можно было бы понять, но это показывает, что вы не задались вопросом, почему разницы по времени нет. -1
| List<HashRecursiveTask> tasks = new LinkedList<>(); | ||
| for (File content : contents) { | ||
| HashRecursiveTask task = new HashRecursiveTask(content); | ||
| task.fork(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
В этот момент таска уходит на дефолтный fork-join pool. А это вряд ли то, что здесь ожидалось, учитывая, что выше вы создаете свой тред-пул. -1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Беру свои слова назад. Был неправ
|
Итого: 9/10 |
No description provided.