@DansGN · Post #5581 · 08.06.2024 г., 00:52
文明7发布先行预告, 游戏将于2025年正式发售 https://www.youtube.com/watch?v=pygcgE3a_uY #Civilization
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #425 · 20 апр.
Недавно делал быстрый прототип асинхронного приложения в котором требовалось вызывать много синхронного кода. Да, я знаю, что это не лучший дизайн, но нужно было быстрое решение на один процесс и без очередей. Поэтому я выполнял код в потоках. Выглядело это примерно так: from fastapi.concurrency import run_in_threadpool async def execute(data: DataRequest) -> DataResponse: try: result = await run_in_threadpool(sync_function, data) return DataResponse(data=result) except Exception as e: return DataResponse( error=str(e), success=False, ) В общем работает нормально. Для всех вызовов под капотом используется общий тредпул, всё работает предсказуемо. Но потребовалось изменить количество запускаемых в пуле потоков (по умолчанию создается 40 воркеров). Так как дело происходит с FastAPI, делается это через lifespan используя настройки anyio: import anyio @asynccontextmanager async def lifespan(app: FastAPI): limiter = anyio.to_thread.current_default_thread_limiter() limiter.total_tokens = 100 yield # если вдруг нужно вернуть обратно limiter.total_tokens = 40 Зачем менять количество воркеров? - уменьшить, если оперативки мало (один тред занимает ~8мб) - увеличить чтобы выдержать нагрузку Если есть предложения получше при тех же вводных - предлагайте😉 #async
Hashtags
Пребарај: #civilization
@DansGN · Post #5581 · 08.06.2024 г., 00:52
文明7发布先行预告, 游戏将于2025年正式发售 https://www.youtube.com/watch?v=pygcgE3a_uY #Civilization
Hashtags
@interesting_planet_facts · Post #587 · 19.08.2025 г., 03:22
🌎 The Caral civilization in Peru built the oldest known city in the Americas around 2600 BCE. Its pyramid complexes predate the Inca by millennia and show early urban planning, trade, and communal gatherings long before written history in the region. ✨ #history⚡#archaeology⚡#civilization 👉subscribe Interesting Planet
@interesting_planet_facts · Post #874 · 07.10.2025 г., 20:11
🌎 The mysterious Harappan city of Dholavira, in India’s Gujarat region, features an intricate water management system with reservoirs, underground drains, and stone-lined wells. Archaeologists date the city from 3000 BCE to 1500 BCE and note its unique use of stepwells and multi-level reservoirs for collecting and distributing scarce water in the desert. ✨ #archaeology⚡#civilization⚡#mystery 👉subscribe Interesting Planet 👉more Channels
@DansGN · Post #5517 · 27.03.2024 г., 02:40
Noland Arbaugh表示在接受Neuralink大脑植入手术之后通宵游玩了文明6 https://twitter.com/ModdedQuad/status/1771298116719002100 #Neuralink#Civilization
Hashtags
@borkena · Post #5623 · 25.12.2025 г., 20:29
Oromummaa’s Historical and Civilizational Subordination of Islam to Waaqeffanna. Read. https://borkena.com/2025/12/25/oromummaas-historical-and-civilizational-subordination-of-islam-to-waaqeffanna/#Ethiopia#Oromummaa#politics#civilization
@amazingeo · Post #410 · 24.10.2025 г., 12:31
🌍 The boundaries of ancient Mesopotamia shifted as rivers changed course, causing cities to move or vanish. River geography shaped the rise and fall of some of history’s earliest civilizations. ✨ #historicalgeography⚡#rivers⚡#civilization⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels
@interesting_planet_facts · Post #1121 · 11.12.2025 г., 22:11
🌎 Massive underground chambers beneath the ancient city of Derinkuyu in Turkey could shelter up to 20,000 people. This multi-level complex includes ventilation shafts, stables, kitchens, wells, and a school. Archaeologists believe it was carved from soft volcanic rock over 2,000 years ago to protect residents from invasions. ✨ #archaeology⚡#civilization⚡#Turkey 👉subscribe Interesting Planet 👉more Channels
Hashtags
@amazingeo · Post #678 · 31.03.2026 г., 20:31
🌍 The lost city of Cahokia once stood near present-day St. Louis, with earthen mounds and a population rivaling European cities around 1100 CE—making it North America’s largest urban center before Columbus. ✨ #historicalgeography⚡#archaeology⚡#civilization⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels
@american_observer · Post #5673 · 21.04.2026 г., 18:05
Alexander Karp (Palantir) forecasts the end of the current civilization... #alexander#karp#civilization 📱American Оbserver - Stay up to date on all important events 🇺🇸
Hashtags
@Enviro_Climate · Post #372 · 18.09.2021 г., 13:21
Sea Secrets - Arash Sharifi Arash Sharifi, a Ph.D. candidate of marine geology and geophysics at the UM Rosenstiel School, takes us into the compelling world of #paleoclimate research. By using climate, #historical, and #archeological records, Sharifi shows how climate change has been affecting the world since the beginning of human #civilization. @Enviro_Climate https://youtu.be/ovy-57jx85Q?t=3
@yukiokhruner · Post #52 · 01.08.2022 г., 10:04
L'esigenza spontanea di uno spazio sacro sembra essere venuta meno nell'ultima forma della nostra civiltà #vaporonda#vaporwave#vapourwave#vaporart#seapunk#webpunk#glitch#glitchart#glitchartistscollective#chillwave#aesthetic#vaporwaveaesthetic#vaporwaveaesthetics#malinconia#melancholy#civiltà#civilization#egemonia#hegemony#sacro#sacred#suora#nun