Skip to content

Task 1, memory optimization in Ruby#14

Open
MarynaNogtieva wants to merge 19 commits intospajic:masterfrom
MarynaNogtieva:master
Open

Task 1, memory optimization in Ruby#14
MarynaNogtieva wants to merge 19 commits intospajic:masterfrom
MarynaNogtieva:master

Conversation

@MarynaNogtieva
Copy link

No description provided.

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.

Хорошая работа, но case-study смотрелся бы сильнее, если бы было больше конкретики о том как конкретно, каким инструментом, каким отчётом нашли самую большую на данный момент проблему.

data_large.txt
data_small.txt
tmp/
graphviz.png
Copy link
Owner

Choose a reason for hiding this comment

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

👍

@@ -0,0 +1,9 @@
source 'https://rubygems.org'
Copy link
Owner

Choose a reason for hiding this comment

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

👍 Плюс за Gemfile

gem 'memory_profiler'
gem 'stackprof'
gem 'ruby-prof'
gem 'get_process_mem' No newline at end of file
Copy link
Owner

Choose a reason for hiding this comment

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

👍

Сначала я хотела протестировать програму с болсшим файлом, но после 10 минут ожидания
ее окончания, а не смогла дождаться и решила делать оптимизацию с файлом меньшего размера.

Чтобы найти более-менее нормалное колицчество строк, обработка которич не занимает сильно много времени,
Copy link
Owner

Choose a reason for hiding this comment

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

Много опечаток, писали с телефона?

В итоге, я сократила количество строк до 30_450, что было эквивалентно 1.1 МБ. - здесь
время обработки файла заняло 50.04 секунды. Эта метрика стала исчодной и основной тоцчкой для меня.

Для начала, я решила использовать все метрики из лекции, чтобы практиковать их применение.
Copy link
Owner

Choose a reason for hiding this comment

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

👍 👍


### Ваша находка №1
О вашей находке №1
Трудно удержаться от рефакторинга кода сразу
Copy link
Owner

Choose a reason for hiding this comment

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

👍 👍


### Ваша находка №X
О вашей находке №X
Несколько проблемных областей были найдены для пользователей `users.each` и `sessions.each`
Copy link
Owner

Choose a reason for hiding this comment

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

Хорошо было бы указать как именно были найдены

Show less
5000/5000
Character limit: 5000
# Case-study optimization
Copy link
Owner

Choose a reason for hiding this comment

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

плюс за english

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