Skip to content

[WIP] add presentations#1

Open
mesher-x wants to merge 12 commits intoQratorLabs:masterfrom
mesher-x:presentations
Open

[WIP] add presentations#1
mesher-x wants to merge 12 commits intoQratorLabs:masterfrom
mesher-x:presentations

Conversation

@mesher-x
Copy link

No description provided.

@code-of-kpp
Copy link

Could you please reorder sections focusing on proper timers for implementations of sleep() and schedule() etc?

}
],
"source": [
"for name in ['clock', 'monotonic', 'perf_counter', 'process_time', 'thread_time', 'time']:\n",

Choose a reason for hiding this comment

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

а как же _ns версии?

Copy link
Author

Choose a reason for hiding this comment

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

_ns версии не поддерживаются.
https://docs.python.org/3.7/library/time.html#time.get_clock_info

"cell_type": "markdown",
"metadata": {},
"source": [
"adjustable = True, если счётчик может быть изменён."

Choose a reason for hiding this comment

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

Я не думаю, что нам нужно сильно освещать эту часть, просто замечания о том, что некоторые счётчики можно менять будет достаточно. Впрочем можно (попробовать) показать на их примере немонотонность.

"loop = asyncio.new_event_loop()\n",
"\n",
"for i in range(5):\n",
" await asyncio.sleep(1)\n",

Choose a reason for hiding this comment

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

имеет смысл показать несколько корутин, делающих asyncio.sleep().
можно также показать, что будет, если сделать time.sleep() а не asyncio.sleep() в корутине

}
},
"source": [
"В ведро фиксированного размера поступают запросы клиентов. Запрос отклоняется, если не помещается в ведро. Принятый запрос кладётся в ведро и передается на обработку в порядке очереди (FIFO). Ведро наполняется запросами, приходящими, вообще говоря, неравномерно по времени. Запросы достаются из ведра с фиксированной частотой."

Choose a reason for hiding this comment

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

Покажите, пожалуйста, что клиентов больше чем 1 и как это влияет на потребление памяти.

@mesher-x mesher-x changed the title add presentations [WIP] add presentations Mar 28, 2019
@code-of-kpp
Copy link

is it ready for review?

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.

2 participants