Skip to content

Home Work 2#1

Closed
VidgarVii wants to merge 42 commits intohardcode-dev:masterfrom
VidgarVii:master
Closed

Home Work 2#1
VidgarVii wants to merge 42 commits intohardcode-dev:masterfrom
VidgarVii:master

Conversation

@VidgarVii
Copy link
Copy Markdown

@VidgarVii VidgarVii commented Aug 9, 2019

Результат 16 Мб при парсинге большого файла

@VidgarVii VidgarVii changed the title Home Work 2 WIP: Home Work 2 Aug 9, 2019
@VidgarVii VidgarVii changed the title WIP: Home Work 2 Home Work 2 Aug 11, 2019
Copy link
Copy Markdown
Collaborator

@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.

Nice work!
Хорошо было бы сделать на последнем прогоне ориентироваться не на RSS в конце выполнения программы, а на профиль Valgrind на всём протяжении работы.

Comment thread case-study-RAM.md

####Ваша находка №7

Так как дата файл занимает объем памяти больше чем заложанные бюджет. Я решил сохранять пользователей во временный файл. После чего из временного файла по строчно буду забирать данные и переписывать в конечный файл result.txt.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍

Comment thread case-study-RAM.md
После всех обновлений memory_profile показал, что для работы тестового файла надо 4Kb rss.
По данным асимптотики я более чем уложился в бюджет.

Тестовый запуск обработки данных в большом файле показал. Что для него используется только 16 Mb. Отчет команды `ps -o rss= -p #{Process.pid}`
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍

Comment thread case-study-RAM.md

while + (shift, delete ...) можеть быть отличным инструментом при работе с большими данными

Ночами спать надо, а не кодить. No newline at end of file
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

=)

@vkurennov vkurennov closed this Jan 24, 2020
axelx pushed a commit to axelx/rails-optimization-task2 that referenced this pull request Oct 3, 2020
chiibis added a commit to chiibis/rails-optimization-task2 that referenced this pull request Oct 25, 2020
ldrner pushed a commit to ldrner/rails-optimization-task2 that referenced this pull request May 23, 2022
stashevgenij added a commit to stashevgenij/rails-optimization-task2 that referenced this pull request Jul 3, 2022
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.

3 participants