Один из самых удобных способов записать данные это использование готовых форматов, такие как JSON или YAML.
Из плюсов такого подхода стоит отметить вот что:
🔸 готовый, повсеместно используемый и поддерживаемый формат
🔸 простой и понятный файл, удобочитаемый для человека
🔸 можно легко редактировать в любом текстовом редакторе без специальных программ и библиотек
Но есть и минусы
🔹 затраты времени при записи файла (кодирование данных в нужный формат строки)
🔹 затраты времени при чтении файла (декодирование данных в Python объекты)
🔹 размер файла увеличивается из-за разметки данных (скобки, запятые, переносы, отступы...)
🔹 перед записью все данные должны быть помещены в память в полном объёме (не всегда)
🔹 при чтении необходимо считать весь файл в память и только потом декодировать данные
Если нужно писать немного данных в несколько файлов, то затраты по времени не ощутимы. Обычно это файлы конфига или какие-либо метаданные. Это отличный вариант под такие задачи.
Есть и другой поход к записи файлов - это бинарные файлы. Используется, когда данных достаточно много и никто их не собирается читать глазками😳.
🔸 очень быстрая запись
🔸 чтение значительно быстрей чем JSON, YAML итд
🔸 размер файла значительно меньше, так как нет разметки
🔸 можно записывать данные по мере поступления не загружая всё в память
🔸 можно извлечь любую часть данных независимо
Из минусов
🔹 нужно определить свой формат записи данных (если не используете готовую спецификацию определённого формата)
🔹 не получится открыть файл и визуально понять что там записано, а для чтения файла потребуется знать его спецификацию.
🔹 не так-то просто создать такой файл без специальной библиотеки
В таком виде удобно записывать большой массив любых однородных данных. Например, мониторинг валютной биржи или кэшированная анимация 3D геометрии.
(Это не означает что нельзя записать данные разного типа, просто это будет не так удобно)
Представьте себе JPG-картинку. По сути это немного мета-информации и большой массив пикселей. Тоже самое со звуком или видео файлом. Поэтому, если вы попробуете открыть картинку в текстовом редакторе вы увидите что-то вроде такого
f15d cd29 a564 4578 ...
09e2 9bc4 a696 1253 ...
84e9 4de1 3b23 c24a ...
2534 5161 28e0 709d ...
...
Это и есть записанные байтики. И для их чтения требуется определённый софт который знает что с ними делать. Под каждый тип файла.
К чему это я? Читайте в следующем посте...
#tricks#basic
⚡️Trending Apps: Insights from Arkham Founder
#Telegram#Arkham
Trending Apps shared highlights from an insightful conversation with Arkham's founder. Arkham is leveraging Telegram to enhance its blockchain analytics Mini App, aiming to make whale activity analysis intuitive and mobile-friendly. They plan real-time alerts and deeper Telegram integrations, targeting the TON audience for growth.
Source: link
@tonlines
Trending Apps: Arkham Now Available on Telegram
#Telegram#Arkham
Trending Apps introduces Arkham in the Telegram Apps Center, allowing users to set alerts, track traders, and earn points without leaving the chat. This mini-app facilitates seamless on-chain tracking with just one button.
Source: link
@tonlines
TON — LIVE: Arkham Launches Telegram App
#Arkham#Telegram#TON
Arkham has launched a new application in Telegram, enhancing the ability to track on-chain data in the TON ecosystem. Users can analyze trading activities, major transfers, and various network activities using time filters and label management options.
Source: link
@tonlines
⚡️Trending Apps: Arkham AMA Session Announcement
#Arkham#blockchain
Trending Apps announces an Arkham AMA session featuring the Founder & CEO. This event, scheduled for May 30 at 17:00 UTC on Trending Apps' X account, will provide exclusive insights into Arkham's roadmap and future plans.
Source: link
@tonlines
Arkham launched Telegram Mini-App!
Arkham is a leading on-chain analytics platform that tags addresses, tracks connections between them, and identifies key participants in the blockchain.
Yesterday, the project team announced the launch of its analytical platform in the format of a Telegram application. In the application, you can search for data by addresses: the Arkham database contains 2.1 billion tagged accounts and 700 thousand entities, as well as create and manage notifications about any on-chain transactions directly in Telegram.
✈️Arkham Telegram mini-app
#TON#Arkham#Analytics
🇬🇧Arkham Horror_The Terror at the End of Time #1-2
🇷🇺Ужас Аркхэма_Ужас в конце времён #1-2
Дженни Барнс, авантюристка и светская дама, считала жизнь одной большой игрой. Но всё изменилось, когда опасный культ похитил её сестру. Хоть Дженни и помешала жертвоприношениям культистов, и даже сразилась с жуткими монстрами по их приказу, верховная жрица Эбигейл Олмстед сбежала, забрав Иззи с собой.
#комикс#comics#аркхэм#arkham
#dark_horse
🚀 Alameda Research Transfers $16 Million in SOL to Creditor Distribution Address
According to Odaily, Arkham has reported that Alameda Research has unstaked $16 million worth of SOL and transferred it to an address designated for creditor distribution. This marks the first such transaction in a month.
#AlamedaResearch#SOL#Crypto#Cryptocurrency#Blockchain#CreditorDistribution#Arkham#DeFi
Satoshi Nakamoto Identity Clue?
Coinbase's Conor Grogan claims Kraken may hold clues to Satoshi Nakamoto’s identity. Analysis of wallet clusters revealed a past transaction from the Canadian exchange CaVirtEx, acquired by Kraken in 2016. Doubts arise over KYC compliance; transaction may involve any user, not necessarily Satoshi. Current Arkham data shows Satoshi’s 22,000 wallets contain 1.09M BTC, valued at $107B.
Links: News | AI | YouTube
#Satoshi#Kraken#AI#Crypto#Blockchain#Bitcoin#Coinbase#P2P#Wallets#Arkham#BTC#KYC
ETH Deposits Surge on Bybit
Aave's ETH supply surpassed 2M for the first time. Mirana Ventures deposited $600M worth of ETH into Bybit, becoming the largest depositor since the hack. The firm sold $500M in Bitcoin and $100M in USDT to fund this. In addition, $130M in USDT transferred to Tether Treasury. Significant BTC movements reported as well. Full details in the links: Arkham, The Block, Whale Alert USDT Transfer.
#ETH#Aave#Bybit#Crypto#USDT#BTC#MiranaVentures#DeFi#Arkham#Treasury#GameStop#SEC#Uniswap#AlgorithmicTrading#Blockchain#Investments#Bitcoin#WhaleAlert#Fintech#VC
Bybit's Major ETH Acquisition Revealed
Bybit addresses crypto hack fallout:
- ETH purchase of 36,900 from 100M USDT transfer to Galaxy Digital and FalconX.
- Involved suspected address: 0x2E...1b77.
- CEO acknowledges support from various companies post-hack.
- Allegations of North Korean hackers tied to Bybit hack confirmed by Arkham Intelligence.
Details on these transactions and more in the full articles: Wu Blockchain News | Arkham Intelligence
#Bybit#ETH#USDT#GalaxyDigital#FalconX#CryptoHack#NorthKorea#ARKham#Blockchain#VC#Crypto#Security#Hacking#DigitalAssets#Fintech#Cryptocurrency#BlockchainAnalysis#MarketTrends#TechNews
🚀 Crypto Analyst Manya Releases Research Tool Rankings
Crypto analyst manya has released a ranking of personal research tools. According to ChainCatcher, the rankings categorize tools into different levels based on their effectiveness. The S-tier includes Dune and frontrun.pro, while the A-tier features Coinglass, RootData, Drop, MetaSleuth, and DefiLlama. B-tier tools comprise Arkham, Bubblemaps, Dexscreener, Surf, Nansen, and CoinMarketCap. C-tier tools include Cryptorank and others.
#CryptoAnalyst#ResearchTools#CryptoRanking#Dune#frontrunpro#Coinglass#RootData#Drop#MetaSleuth#DefiLlama#Arkham#Bubblemaps#Dexscreener#Surf#Nansen#CoinMarketCap#Cryptorank