-
Notifications
You must be signed in to change notification settings - Fork 193
Task1 home work #5
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
Conversation
00145a5 to
28195ed
Compare
28195ed to
8d85f42
Compare
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.
Очень хорошая работа, спасибо!
| @@ -0,0 +1,14 @@ | |||
| # frozen_string_literal: true | |||
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.
👍 Плюсик за Gemfile
| user_sessions = sessions.select { |session| session['user_id'] == user['id'] } | ||
| ``` | ||
|
|
||
| Решил данную проблему сразу сгруппировав сессию по user_id |
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.
👍
| В результате проделанной оптимизации наконец удалось обработать файл с данными. | ||
| Удалось улучшить метрику системы с бесконечно долго выполнения до 33 секунд | ||
|
|
||
| Было весело :) |
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.
👍
| @@ -0,0 +1,15 @@ | |||
| # brew install rbspy | |||
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.
👍 Плюсик за отдельные файлы для удобства работы
| File.delete(result_file_path) if File.exist?(result_file_path) | ||
| end | ||
|
|
||
| describe "#work" do |
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.
👍
c41373b to
8d85f42
Compare
No description provided.