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

Резултати

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

Пребарај: #idiom

当前筛选 #idiom清除筛选
English From Zero to Hero

@Learn_English_from_Zero_to_Hero · Post #60511 · 18.11.2025 г., 16:22

#Idiom 💢Go off on a tangent Or 💢 Go off at a tangent 🔰If a person or piece of writing goes off on a tangent or goes off at a tangent, they start saying or thinking something that is not directly connected with what they were saying or thinking before 💠Note:- In geometry, a tangent is a straight line which touches a curve at one point 🕸 Ex:- Our teacher would occasionally go off on a tangent and start talking about something totally unrelated to the textbook. 💠Note:- You can use other verbs instead of go 🕸 Ex:- The book's theme wandersoff on a tangent now and then.

Hashtags

English From Zero to Hero

@Learn_English_from_Zero_to_Hero · Post #59847 · 03.07.2025 г., 21:40

#Idiom 🕸People in society🕸 ❄️A self-made man ♣️ A person who is rich and successful because they have worked hard, not because they were born into a rich family ❄️The chattering classes ♣️ Educated people who enjoy discussing social, political and cultural issues ❄️A second-class citizen ♣️ Someone is treated as if they are less important than others in society ❄️The grass roots ♣️ Ordinary people in a political or sporting organisation, not the leaders ❄️ The silent majority ♣️ A large number of people who do not express their opinions publicly ❄️ The (men in) grey suits ♣️ People in business or politics with a lot of influence or power, although they are not well known to the public ❄️Public enemy number one ♣️ Smth or someone that a lot of people dislike or disapprove of ❄️New kid on the block ♣️ Someone who is new in a place or organisation and has many things to learn about it (informal).

Hashtags

English From Zero to Hero

@Learn_English_from_Zero_to_Hero · Post #59742 · 15.05.2025 г., 05:36

#Idiom 💢Even exchange: a trade of equal value; when you return something and take something else that costs the same price ✨ Ex: If you return that jacket and get this sweater instead, it will be an even exchange. They're both $39.99.

Hashtags

123•••10•••1213
ПретходнаСтраница 1 од 13Следна