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

Резултати

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

Пребарај: #buddhism

当前筛选 #buddhism清除筛选
Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40743 · 06.03.2026 г., 15:03

The Sukhothai Kingdom was a Siamese kingdom in Mainland Southeast Asia. It was centered in north-central present-day Thailand. It existed from 1238 to 1438. It later became part of the Ayutthaya Kingdom. The kingdom grew strong under rulers like Si Inthrathit and Ram Khamhaeng. People spoke Old Thai and practiced Theravada Buddhism. 🏯🇹🇭📜 [Read more] @googlefactss #Sukhothai#ThaiHistory#SoutheastAsia#Ayutthaya#Buddhism

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40756 · 07.03.2026 г., 07:04

Theravāda Buddhism means “Teaching of the Elders.” It is the oldest surviving school of Buddhism. It follows the Pāli Canon. It teaches the Four Noble Truths: life includes suffering; suffering is caused by craving; suffering can end; the path ends suffering. The Noble Eightfold Path is: right view, right intention, right speech, right action, right livelihood, right effort, right mindfulness, and right concentration. The goal is Nibbāna, freedom from rebirth. Meditation and moral conduct are central practices. 🧘‍♂️📜🌏 [Read more] @googlefactss #Buddhism#Theravada#FourNobleTruths#EightfoldPath#WorldReligions

Google Facts™ [ ️@googlefactss🌎]

@googlefactss · Post #40767 · 09.03.2026 г., 07:03

Some Buddhists serve as soldiers even though Buddhism teaches non-violence. Soldiers can protect people, and Buddhism considers the intention behind actions. Actions that reduce suffering can be acceptable according to Buddhist ethics. Concepts like karma and skillful action are important. International humanitarian rules guide soldiers to act carefully. Being a Buddhist does not always mean being completely against war. Martial arts like Kung Fu also connect to Buddhism. They teach discipline, self-control, mindfulness, and protecting others. The goal is training the mind and body, not just fighting. 🕉️⚔️🥋 [Read more] @googlefactss #Buddhism#Ethics#Soldiers#NonViolence#Karma#Protection#SkillfulAction#KungFu#MartialArts#Mindfulness