Skip to content

Conversation

@iBublik
Copy link

@iBublik iBublik commented Mar 6, 2019

No description provided.

paderinandrey added a commit to paderinandrey/task-1 that referenced this pull request Mar 7, 2019
paderinandrey added a commit to paderinandrey/task-1 that referenced this pull request Mar 7, 2019
paderinandrey added a commit to paderinandrey/task-1 that referenced this pull request Mar 7, 2019
Copy link
Owner

@spajic spajic left a comment

Choose a reason for hiding this comment

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

Аппрув + пара вопросов

Удалось добиться небольшого ускорения, собрав всю статистику пользователя за одну итерацию (вместо нескольких для каждого вида статистики).

### Ваша находка №5
Удалось добиться прироста производительности ~30% и сокращения объема потребляемой памяти заменой массива с проверкой на уникальность на `Set`.
Copy link
Owner

Choose a reason for hiding this comment

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

👍

Удалось улучшить метрику системы с *того, что у вас было в начале, до того, что получилось в конце*

*Какими ещё результами можете поделиться*
Удалось улучшить метрику системы с 20 сек и 36 МБ RSS до 0.35 сек и 19 МБ RSS.
Copy link
Owner

Choose a reason for hiding this comment

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

А исходный файл в резльтате получилось обработать?

Copy link
Author

Choose a reason for hiding this comment

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

Да, если нужно могу метрики скинуть

1. Построение гипотезы
2. Исправление кода
3. Запуск скрипта на тестовом файле небольшого объема (1 мб)
4. Сопоставление новых метрик с предыдущими
Copy link
Owner

Choose a reason for hiding this comment

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

А выполнение тестов включили в фидбек-луп?

Copy link
Author

Choose a reason for hiding this comment

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

Да, я просто думал что об этом говорит пункт "Гарантия корректности работы оптимизированной программы"

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