Task 1, memory optimization in Ruby#14
Open
MarynaNogtieva wants to merge 19 commits intospajic:masterfrom
Open
Task 1, memory optimization in Ruby#14MarynaNogtieva wants to merge 19 commits intospajic:masterfrom
MarynaNogtieva wants to merge 19 commits intospajic:masterfrom
Conversation
spajic
approved these changes
Mar 13, 2019
Owner
spajic
left a comment
There was a problem hiding this comment.
Хорошая работа, но case-study смотрелся бы сильнее, если бы было больше конкретики о том как конкретно, каким инструментом, каким отчётом нашли самую большую на данный момент проблему.
| data_large.txt | ||
| data_small.txt | ||
| tmp/ | ||
| graphviz.png |
| @@ -0,0 +1,9 @@ | |||
| source 'https://rubygems.org' | |||
| gem 'memory_profiler' | ||
| gem 'stackprof' | ||
| gem 'ruby-prof' | ||
| gem 'get_process_mem' No newline at end of file |
| Сначала я хотела протестировать програму с болсшим файлом, но после 10 минут ожидания | ||
| ее окончания, а не смогла дождаться и решила делать оптимизацию с файлом меньшего размера. | ||
|
|
||
| Чтобы найти более-менее нормалное колицчество строк, обработка которич не занимает сильно много времени, |
Owner
There was a problem hiding this comment.
Много опечаток, писали с телефона?
| В итоге, я сократила количество строк до 30_450, что было эквивалентно 1.1 МБ. - здесь | ||
| время обработки файла заняло 50.04 секунды. Эта метрика стала исчодной и основной тоцчкой для меня. | ||
|
|
||
| Для начала, я решила использовать все метрики из лекции, чтобы практиковать их применение. |
|
|
||
| ### Ваша находка №1 | ||
| О вашей находке №1 | ||
| Трудно удержаться от рефакторинга кода сразу |
|
|
||
| ### Ваша находка №X | ||
| О вашей находке №X | ||
| Несколько проблемных областей были найдены для пользователей `users.each` и `sessions.each` |
Owner
There was a problem hiding this comment.
Хорошо было бы указать как именно были найдены
| Show less | ||
| 5000/5000 | ||
| Character limit: 5000 | ||
| # Case-study optimization |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.