-
Notifications
You must be signed in to change notification settings - Fork 24
task-1 #6
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?
task-1 #6
Conversation
spajic
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.
Аппрув + несколько комментов
|
|
||
| Вот какие проблемы удалось найти и решить | ||
|
|
||
| ### Ваша находка №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.
Ваша находка №1 -> Находка №1 ?
| и конкатенацию строк (String#split) | ||
|
|
||
| ### Ваша находка №3 | ||
| Долго происходил процесс обработки сессий для каждого пользователя |
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.
Хорошо было бы добавить к каждому шагу больше конкретики.
Долго- это сколько?- Что было основной причиной?
- Как нашли причину?
- Как устранили?
- Как изменилась метрика?
| ie_counter = 0 | ||
| chrome_counter = 0 | ||
| users_browsers.each do |b| | ||
| ie_counter += 1 if ie_counter == 0 && /INTERNET EXPLORER/.match?(b) |
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.
А зачем проверка if ie_counter == 0?
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.
я думал, что так можно сократить лишнюю проверку #match?
allocated memory by class
326_126_88 String
204_421_52 MatchData
161_736_32 Hash
768_498_4 Array
162_813_6 Date
163_120 User
Total allocated: 787_261_33 bytes (857028 objects)
100.00% 0.00% 857034.00 7.00 0.00 857027.00 1 Object#work
1mb: Finish in 0.6
~128Mb: Finish in ~110.46