Skip to content

feat: add searching#1

Open
notbadcodecom wants to merge 1 commit intomasterfrom
add-searching
Open

feat: add searching#1
notbadcodecom wants to merge 1 commit intomasterfrom
add-searching

Conversation

@notbadcodecom
Copy link
Owner

  • для поиска по папкам использовал ForkJoinPool;
  • для поиска слов использовал ParallelStream;
  • для поиска в google использовал CompletableFuture.

import java.util.List;
import java.util.concurrent.ForkJoinPool;

public class ForkJionFilesSearcher implements FileSearcher {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jion -> Join

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да, спасибо.

@kincajou
Copy link

kincajou commented Feb 8, 2023

так, ну тут у нас очевидная пятерка
с первого раза сделал все как нужно
придраться не к чему :-)

пара коментов:

  • к поиску в гугле можно прикрутить кеш - сильно ускорит
  • чтобы не возиться с замерами таймингов руками я бы какойнить com.google.common.base.Stopwatch заюзал

в остальном супер, надеюсь было полезно :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants