TGStat
TGStat
Qidiruv uchun matnni kiriting
Ilg‘or kanal qidiruvi
  • flag Uzbek
    Sayt tili
    flag Russian flag English flag Uzbek
  • Saytga kirish
  • Katalog
    Kanal va guruhlar katalogi Kanallar qidiruvi
    Kanal/guruh qo‘shish
  • Reytinglar
    Kanallar reytingi Guruhlar reytingi Postlar reytingi
    Brendlar va shaxslar reytingi
  • Analitika
  • Postlarda qidiruv
  • Telegram'ni kuzatish
FlutterDev

6 Jul 2019, 18:09

Telegram'da ochish Ulashish Shikoyat qilish

New post on /r/flutterdev subreddit:

Avoid reallocating objects by using global constants.
Hi fellow flutter devs ...I have problem with flutter performance.Consider You have stateless widget with number of objects in build methods, objects are immutable and will not be changed. But in every build or constructing object. the same data will be created. for example:​class Foo extends StatelessWidget {final foo = SomeBigVarible();@override build(context){final bar = OtherBigVars();....}}​foo and bar are immutable. every time Foo instance is created, same foo and bar should be allocated. So I decide to use foo and bar as global (static) variables. They will never change and I don't have intention to use them as global state (So Please don't mention me to study StatefulWidget's or something else I already know them, my problem is something else) .So my problem is how much convenient using global variables like this in flutter apps? I don't see any example using them. Every one literally put big chunk of objects in build or constructor method's. Could this become problem in cases like threading?

July 06, 2019 at 04:34PM by Howard_banister
https://ift.tt/2RXsCup
r/FlutterDev - Avoid reallocating objects by using global constants.
0 votes and 1 comment so far on Reddit

42 0 0
Katalog
Kanal va guruhlar katalogi Kanallar to‘plamlari Kanallar qidiruvi Kanal/guruh qo‘shish
Reytinglar
Telegram-kanallar reytingi Telegram-guruhlar reytingi Postlar reytingi Brendlar va shaxslar reytingi
API
Statistika API'si Postlar qidiruvi API'si API Callback
Kanallarimiz
@TGStat @TGStat_Chat @telepulse @TGStatAPI
O‘qish
Академия TGStat Telegram tadqiqoti 2019 Telegram tadqiqoti 2021 Telegram tadqiqoti 2023
Kontaktlar
Справочный центр Qo‘llab-quvvatlash Email Vakansiyalar
Har xil narsalar
Foydalanuvchi shartnomasi Maxfiylik siyosati Ommaviy oferta
Botlarimiz
@TGStat_Bot @SearcheeBot @TGAlertsBot @tg_analytics_bot @TGStatChatBot