Один из самых удобных способов записать данные это использование готовых форматов, такие как 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
https://x.com/priceactiongann/status/1830485509040206276
#NIFTY
✅25300 is top price and all top side done as per my studies and cycle ends as stated several time long term 25192 and short term 25300!
✅give long term downside time from here!
don't gamble intraday and lose more in weekly options
✅without a doubt it will go down more at least 500 points sooner or later from here and more to come!
✅ give maximum time and benefit it!
https://x.com/priceactiongann/status/1830485509040206276
https://x.com/priceactiongann/status/1805149402027200627
#nifty
indian markets retest on top and can drop or deicide,
let it complete and time cycle date today 24th!
so mark yesterdays (fridays low and high price) and use it for upcoming days direction, patterns that forms there
weekly close and monthly
close will be very crucial!
Show more
https://x.com/i/status/2037865158207475768
#nifty
Hard truth:
"Many don't like sell trend at all especially in Indian market "
All few know is ,market will simply go upside nomatter the price or time
They couldn't even tolerate when the market drops,
When no knowledge this is what happens.
Just buy buy buy ...gamble in weekly options .
Many newcomers after corona or recent newcomers who enter trading don't even know what cycles or about time and price
Only a very few understand the reality and indepth concepts
They always listen,study and improvise
Especially adapt as per cycles and research.
Know when to enter and when to shut up and be silent
If not market will make u suffer without mercy.
#stockmarket
https://x.com/priceactiongann/status/1858784604171231577#nifty50#nifty
23747 will be Major Price Encoded!
watch out here!
23535 bounce Confirms cycle vibrations and proves our theory too!
#StockMarket
https://x.com/i/status/2037845679603929594
#nifty
Nifty clarification:
Cycle 1 is supposed to go 27000 to 28800 which is valid as long as 23300 to 23900 above price stays
Cycle 2: from top 27000 to 28800 it was supposed to drop massive
Since 2024 the same happened nifty was leading and later dropped
But in this case calculations vary once 23300 is broken everything changes
After this crisis later it will be up and again down so we know 3 to 5 cycles if one dint reach the expected level
Check all my previous posts if a level is missed especially if it's jackpot ot other it goes back
So this phase mostly can drop u yil the 23900 holds simple as that.
Once this drop is done later from it goes to 28800 or more which is way way advanced and ahead iam posting this may be after 2 to 4 years all will See without a doubt.
Check as per market moves and use your own and combine and keep it simple
I dont recommend or advice. It's merely my studies i post .
#nifty50
https://x.com/priceactiongann/status/2032731952021910011?s=20
#nifty
Nifty 50 will go up massive upside 5500 points and more in upcoming weeks
23300 to 28800 in the very long term.
One of the biggest bull trends is about to start
Bookmark this post
All the three defences 24507 , 23900, 23600 and last one where I used jackpot 1 year ago is reached now only at 23300
Look closely all the levels had a bounce first or low there and again breaches down
The only level or calculation was missed and it took it's time and it's finally it's also done now
#nifty50
Finally 23300 is most important and above it is upside and below it is downside.
Most likely upcoming weeks will be up more
23300 will be historic for sure.
23300 above once the price goes there will be more up only.
Everything is maths and geometry only.
https://x.com/priceactiongann/status/1876209418213237011
#niftycrash#nifty
We Just hit Double Jackpot!
576 points at least from 24150!
with price 23990 were warned clearly!
First day few will troll
Next day these few will listen and be calm
The third day u will be my fan or follower!
so don't waste Your energy just hit my follow button and learn already!
keep calm and show results "consistently"
focus on your work and trust in ur skills always!
https://x.com/priceactiongann/status/1812717128442650654
#giftnifty
All time high in gift nifty is 24676 exact !
Also last week high of nifty 50,
#nifty still pending !
Both these are inter related so vibrations can be obvious !
learn to see!
https://x.com/priceactiongann/status/2029152658855207421?s=20
#nifty Nifty 50 price is exactly at 24355 and 24507 which was my older level
zone is in between 23900 and 24355 where many cycles coincide there
both will be very strong barrier and will hold the price upside and strong cycles starts there.
there we watch for clear confirmation.
Time cycle date is around March 5
March and April will see historic movements
just wait and see.
even if it reaches 23300 there is huge upside cycle still in play the more it drops the more it will be up only.
#StockMarketIndia
https://x.com/priceactiongann/status/1988641789180551183?s=20
#banknifty
Get set and Ready!
Bank nifty strongest Encoded price cycle
58507 bookmark this post!
Upcoming cycles all will be related to this level only.
massive movements are yet to come below this will be down and above this will be massive such deciding factor here.
one of the largest movements are yet to come starts from tomorrow!
weekend will be clear and next week it will be more obvious!
#Nifty#StockMarket
https://x.com/priceactiongann/status/1861784516916035816
🚨"The Pause Before the Panic"🚨
Might not get a better chance to exit portfolio!
#Sensex also pointing at 72000 from current price 80470 !
#nifty🛑Pray that 23300 holds 🛑,
If breached, expect a non-stop decline.
#nifty50
https://x.com/priceactiongann/status/1861784516916035816