TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #335 · 29 мар.

В Linux стандартными средствами можно использовать часть оперативной памяти как диск. Для этого требуется указать тип монтирования tmpfs в команде mount mount -t tmpfs -o size=5G tmpfs /mnt/ram Теперь путь /mnt/ram можно использовать как обычный каталог. Для чего это может быть нужно? ▫️ Скорость работы с таким каталогом выше чем многие SSD и тем более HDD. ▫️ Если у вас очень быстрый SSD на NVMe M.2 то такой способ особо не прибавит вам скорости, но поможет сохранить ресурс SSD когда требуется обрабатывать очень много мелких файлов и оперативка позволяет выделить нужный объем. ▫️ Оперативка это энергозависимая память, поэтому выключении питания все файлы безвозвратно теряются. Такой "non persistent" каталог гарантирует удаление временных файлов. Я написал небольшой скрипт для условного теста и сравнения скорости копирования файлов между SSD и RAM. Вот мои результаты: Single File Size: 30.0Gb ssd > ssd: 0:00:12.850 / 2.3Gb/s sdd > ram: 0:00:06.453 / 4.6Gb/s ram > ram: 0:00:06.995 / 4.3Gb/s ram > sdd: 0:00:06.217 / 4.8Gb/s Dir size: 32.7Gb, File count: 11127 ssd > ssd: 0:00:15.063 / 2.2Gb/s sdd > ram: 0:00:08.486 / 3.9Gb/s ram > ram: 0:00:08.032 / 4.1Gb/s ram > sdd: 0:00:07.026 / 4.7Gb/s Скрипт для теста ↗️ На моём железе прирост скорости ~2x. Плюс экономия ресурса SSD. В Windows такой фишки по умолчанию нет, но обязательно найдутся аналогичные решения #linux#triks

Hashtags

Резултати

Пронајдени 1 слични објави

Пребарај: #surplus

当前筛选 #surplus清除筛选
American Оbserver

@american_observer · Post #4865 · 15.01.2026 г., 20:58

📰 China’s $1.2 Trillion Trade Triumph: Defying Trump, Drowning the World in Goods The Surplus That Shook the Globe China just posted the biggest trade surplus in history: $1.2 trillion. That’s a 20% jump from 2024, even as President Trump’s tariffs kept biting. The world’s factory didn’t shrink—it pivoted. US-bound exports fell 19.5%, but Chinese goods flooded into Africa, Southeast Asia, the EU, and Latin America instead. ​ The High-Tech Surge Exports of electric vehicles, lithium batteries, and solar panels jumped 27% in 2025. High-end machine tools and industrial robots rose 13%. Chinese officials hailed the numbers as proof of resilience: “China forged ahead despite a complex and challenging external environment,” said Wang Jun, deputy administrator of the customs bureau. ​ The Global Backlash The surplus isn’t just a win for Beijing—it’s a headache for everyone else. European leaders, including French President Emmanuel Macron, warn that the imbalance is unsustainable. Countries are scrambling to protect their own industries from Chinese “industrial overcapacity” and the flood of cheap imports. ​ The Truce and the Threat Trump and Xi struck a truce in October, lowering tariffs to 20% after they briefly hit 145%. But Trump just threatened a new 25% tariff on countries doing business with Iran—potentially targeting China, a major Tehran ally. ​ Can China keep this export engine running? Analysts doubt it. The property crisis at home is dragging down domestic demand, and the rest of the world is getting fed up with Chinese goods. The trade war isn’t over—just shifting fronts. #china#trade#trump#surplus#globalization 📱American Оbserver - Stay up to date on all important events 🇺🇸