@cryptocurreniesbtc · Post #22119 · 11.11.2023 г., 12:14
#Altcoin season is arround the corner.
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #32 · 7 фев.
Скорее всего уже слышали, что складывать строки через + это плохая практика. Падение производительности, и всё такое. Без лишних слов, давайте измерять: from timeit import timeit def t1(): # складываем 10 строк через + из переменной t = 'text' for _ in range(1000): s = t + t + t + t + t + t + t + t + t def t2(): # склеиваем список строк через метод join arr = ['text'] * 10 for _ in range(1000): s = ''.join(arr) def t3(): # складываем через + но не из переменной а непосредственно инлайн объекты for _ in range(1000): s = 'text' + 'text' + 'text' + ... # всего 10 раз Теперь каждую строку склейки запустим по 10М раз >>> timeit(t1, number=10000) 0.21951690399964718 >>> timeit(t2, number=10000) 1.4978306379998685 >>> timeit(t3, number=10000) 0.2213820789993406 Хм, а нам говорили что через "+" это плохо и медленно ))) 😁 Тут стоит учитывать, что речь идёт о склейке множества длинных строк. Давайте изменим условия: def t4(): t = 'text'*100 for _ in range(1000): s = t + t + t + t + t + t + t + t + t def t5(): arr = ['text'*100] * 10 for _ in range(1000): s = ''.join(arr) def t6(): for _ in range(1000): s = 'text'*100 + 'text'*100 + ... # всего 10 раз >>> timeit(t4, number=10000) 12.795130728000004 >>> timeit(t5, number=10000) 2.642637542999182 >>> timeit(t6, number=10000) 0.2184546610005782 Вот, уже другой разговор, сразу видна разница, в среднем в 6 раз. Но погодите, почему последний тест t6() по скорости такой же как и t3()? Ведь строки теперь в 100 раз длиннее! Это вопросы оптимизации кода, какие простые изменения ускоряют или замедляют выполнение программы. Мы столкнулись с примером обхода обращения к переменной. Например, именно так работает директива #define в С++, во время компиляции подставляя значение переменной вместо ссылки на неё. В Python это тоже работает, но часто ли вы сможете встретить такой способ работы со строками? К сожалению, способ почти только теоретический. В целом, тесты показали то, что мы хотели. Делаем выводы самостоятельно. Полный листинг 🌍 #tricks
Пребарај: #altcoin
@cryptocurreniesbtc · Post #22119 · 11.11.2023 г., 12:14
#Altcoin season is arround the corner.
Hashtags
@CryptoAustralia · Post #14735 · 14.12.2023 г., 08:57
I think #Altcoin season is next. By Crypto Australia
Hashtags
@elfcryptovip · Post #11747 · 21.07.2025 г., 07:45
The #Altcoin Season Index is climbing rapidly, but only a handful of coins are seeing strong gains!
Hashtags
@michaelvandepoppeanalyst · Post #4797 · 09.09.2024 г., 18:29
The boring state is the period of accumulation before a new push happens. That’s the current state of the #Altcoin markets.
Hashtags
@michaelvandepoppeanalyst · Post #4780 · 07.09.2024 г., 08:12
The #Altcoin market capitalization valued in Bitcoin is at the highest level since the end of July. Good perspectives, and it's a pretty substantial breakout. Better times are ahead.
Hashtags
@michaelvandepoppeanalyst · Post #4768 · 05.09.2024 г., 16:43
The #Altcoin markets are reversing. I'm positioned into $OMNI (and under-water), but it's showing a: - Daily bullish divergence. - Reclaiming the level of early August. Expect to see a run of 2-3x in the coming 2-3 months against $BTC value --> the most important metric.
Hashtags
@michaelvandepoppeanalyst · Post #4694 · 31.08.2024 г., 15:48
The #Altcoin market capitalization, valued in Bitcoin, is still consolidating. We're in the middle of that bottoming process, but it's taking a long time. Expecting to see a significant run towards new highs once this starts to turn around.
Hashtags
@michaelvandepoppeanalyst · Post #4605 · 24.08.2024 г., 08:01
Valid falling wedge and bullish divergence on the #Altcoin market capitalization divided by Bitcoin. I think we’re in for a great final part of this year. https://x.com/CryptoMichNL/status/1827254521225162944?t=CykS0U09CC0XSGUvztSAHw&s=19
Hashtags
@michaelvandepoppeanalyst · Post #4510 · 17.08.2024 г., 13:41
The Others market capitalization, which is technically the #Altcoin market capitalization, is currently acting at the low of 'Disbelief'.
Hashtags
@michaelvandepoppeanalyst · Post #4451 · 11.08.2024 г., 15:38
The #Altcoin market capitalization is down 60% from the ATH, while Bitcoin is only down 15%. Lots of upside for altcoins still to come.
Hashtags
@michaelvandepoppeanalyst · Post #4379 · 03.08.2024 г., 13:00
The #Altcoin market capitalization is not showing anything massive, yet. Smaller altcoins have been collapsing. The bigger ones still stand, through which this can be seen as a relatively normal consolidation for the entire index. Reversals should come in the coming weeks.
Hashtags
@michaelvandepoppeanalyst · Post #4244 · 20.07.2024 г., 14:05
The total #Altcoin market capitalization has bottomed during the release of the Mt. Gox news. A strong upward bounce, but more importantly, a strong reversal since it tested a higher timeframe support. https://x.com/CryptoMichNL/status/1814661548193034620?t=tmCmHJhGfr0c38lQIfYUfg&s=19
Hashtags