Один из самых удобных способов записать данные это использование готовых форматов, такие как 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/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/1858813006051774858
#nifty50#niftycrash
23747 Exact Top and Drop as mentioned!
was given weeks ago This exact level!
instant drop almost 300 points!
Nothing I give is random here!
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
follow on x posted there and support more on x
https://x.com/priceactiongann/status/1858813006051774858
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
https://x.com/priceactiongann/status/1839536385474052306
#nifty
🎯 Last Week's High to Now: From the peak last week, we've seen a movement of about 400 points.
📉Nifty: Hit a short-term Level of 26,245.
Gift Nifty: Reached 26,435.(Top level done)
🔄 Sensex & Nifty Alignment:
Sensex at top now when reaches 84,544, Nifty is likely to follow suit.
Synchronization: Both Sensex and Nifty hitting their respective highs simultaneously was noteworthy. 🕰📈
🏔 High Mark:
Nifty's Exact High: 26,010 was the peak on that day, aligning perfectly with Sensex's timing.
#nifty50#stocks#stockmarket
https://x.com/priceactiongann/status/1897597854828671104?t=
#niftycrash#nifty50
Historic significant price:
All based on historic old price alone
(No current market price I have used here)
ALL TIME HIGH:
26277 from there we derived 21957
(21957+720=22677)
Crucial zone:
157.5 x 144 =22680
156.5x144= 22536
History price 22222:
22222+432
22,654
ALL TIME HIGH:
26,277-4464
31x144
21,813
Numbers don't lie
History in the making 👌❤️👌
Bookmark this and repost for maximum reach.
#nifty#stockmarketcrash
https://x.com/priceactiongann/status/1897597854828671104?t=
https://x.com/priceactiongann/status/1897597854828671104?t=
#niftycrash#nifty50
Historic significant price:
All based on historic old price alone
(No current market price I have used here)
ALL TIME HIGH:
26277 from there we derived 21957
(21957+720=22677)
Crucial zone:
157.5 x 144 =22680
156.5x144= 22536
History price 22222:
22222+432
22,654
ALL TIME HIGH:
26,277-4464
31x144
21,813
Numbers don't lie
History in the making 👌❤️👌
Bookmark this and repost for maximum reach.
#nifty#stockmarketcrash
https://x.com/priceactiongann/status/1897597854828671104?t=
https://x.com/priceactiongann/status/1870452149886533702
#Nifty50#NiftyCrash
How Many of u Gearing up for Nifty new Jackpot?
The Nifty is currently shaping a fascinating pattern!
Prepare for action!
#nifty#stockmarketcrash
https://x.com/priceactiongann/status/1870452149886533702
https://x.com/priceactiongann/status/1852701540017987967
#nifty50#stockmarketcrash
Nifty 50 Using Squares and Square Root:
Recent cycle ends at 81 this is 2 times 81 which is 162
Time vibrations with price hidden.
Starting Value:
Square root of 26,277.35 ≈ 162.1028
Step 1:
162.1028 - 4 = 158.1028
Square of 158.1028 ≈ 24,996.52
Step 2:
158.1028 - 4 = 154.1028
Square of 154.1028 ≈ 23,747.703
Step 3:
154.1028 - 4 = 150.1028
Square of 150.1028 ≈ 22,530.880
Step 4:
150.1028 - 4 = 146.1028
Square of 146.1028 ≈ 21,346.057
can use as mentioned and check the circle perfection below!!
#niftycrash#nifty
https://x.com/priceactiongann/status/1852701540017987967
https://x.com/priceactiongann/status/1852214204679242145
"Look deep into nature, and then you will understand everything better." — Albert Einstein
#Nifty50#stockmarketcrash
Nifty 50 Calculation Analysis and Cycles Recall:
1440+1440+1440=4320
Holy Trinity 3x144=432
26277-1440=24,837
26277-2880=23397
26277-4320=21,957!
4320 points from top is expected!
Major high and low were given well in advance including long term cycles and short term as well.
can check these and older posts!
23535 and 22222 is next and already 2000 plus points from top so expect more!
#nifty#niftycrash
https://x.com/priceactiongann/status/1813056880333262989
#nifty from 21300 to 24676 almost all upside is done!
"THE END" of buy calculations after that lost motion or next movement will decide!
price level is almost close and time is also up,
when reaches encoded time is up , but as per time cycle course concept its date is in 2 days july 18 th so this week up to Monday will be high alert !
#stocks#GANN#stockmarket#nifty50
https://x.com/priceactiongann/status/1805971409136410640
#nifty
how about a jackpot trade in nifty?
interested?
this means mostly market from certain level comes back to same price, no matter what this should happen!
This pattern is must in every market! nifty is forming such one now!
#nifty50#stocks#stockmarket#jackpot