-
Notifications
You must be signed in to change notification settings - Fork 47
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
Супрядкина Дарья ИТМО DWS stage 6 #218
Conversation
# Conflicts: # src/main/java/ru/vk/itmo/test/dariasupriadkina/Server.java # src/main/java/ru/vk/itmo/test/dariasupriadkina/ServiceIml.java # src/main/java/ru/vk/itmo/test/dariasupriadkina/ServiceImlFactory.java # src/main/java/ru/vk/itmo/test/dariasupriadkina/TestServer.java
# Conflicts: # src/main/java/ru/vk/itmo/test/dariasupriadkina/Server.java # src/main/java/ru/vk/itmo/test/dariasupriadkina/ServiceIml.java # src/main/java/ru/vk/itmo/test/dariasupriadkina/ServiceImlFactory.java # src/main/java/ru/vk/itmo/test/dariasupriadkina/TestServer.java
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.
The PR diff size of 23827 lines exceeds the maximum allowed for the inline comments feature.
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.
The PR diff size of 23870 lines exceeds the maximum allowed for the inline comments feature.
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.
The PR diff size of 25312 lines exceeds the maximum allowed for the inline comments feature.
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.
The PR diff size of 25313 lines exceeds the maximum allowed for the inline comments feature.
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.
The PR diff size of 25313 lines exceeds the maximum allowed for the inline comments feature.
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.
Есть существенные замечания и вопросы -- ждём исправлений/ответов.
src/main/java/ru/vk/itmo/test/dariasupriadkina/EntryChunkUtils.java
Outdated
Show resolved
Hide resolved
src/main/java/ru/vk/itmo/test/dariasupriadkina/SelfRequestHandler.java
Outdated
Show resolved
Hide resolved
Это решение было принято, чтобы отправлять через `session.write` весь чанк с данными, а не каждую его часть | ||
(length, crlf, <key>, \n, value) по отдельность. В качестве альтернативы можно как раз отправлять каждую часть через session.write, | ||
тогда аллокацию ByteArrayBuilder можно избежать, но, так как на профиле локов, фигурирует в основном только метод Session.write, | ||
вероятно, лишнее использование Session.write может привести к затратам на синхронизацию, отчего в конце концов пострадает latency |
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.
У нас в сессию пишет один поток, поэтому никакого contention нет и затраты на синхронизацию не изменятся.
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.
Всё ещё ждём исправлений, иначе максимум 7 баллов.
Нужно пофиксить конфликты перед merge.
…range-requests # Conflicts: # src/main/java/ru/vk/itmo/test/dariasupriadkina/Server.java
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.
The PR diff size of 25562 lines exceeds the maximum allowed for the inline comments feature.
# Conflicts: # src/main/java/ru/vk/itmo/test/dariasupriadkina/SelfRequestHandler.java # src/main/java/ru/vk/itmo/test/dariasupriadkina/Server.java # src/main/java/ru/vk/itmo/test/dariasupriadkina/ServiceImlFactory.java
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.
12 баллов.
if (!iterator.hasNext()) { | ||
write(EntryChunkUtils.LAST_BYTES, 0, EntryChunkUtils.LAST_BYTES.length); | ||
} | ||
scheduleClose(); |
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.
Мы могли не всё отправить, но всегда инициируем закрытие сессии, верно?
No description provided.