Тёмный

Flyweight Pattern - DESIGN PATTERNS (C#/.NET) 

SingletonSean
Подписаться 22 тыс.
Просмотров 3,4 тыс.
50% 1

Learn about the flyweight pattern, which is a structural design pattern that involves reusing objects to reduce memory usage. The reused object is known as the flyweight and contains immutable, intrinsic state.
Design patterns are important for implementing object-oriented designs and adhering to SOLID principles. Understanding these fundamental patterns helps software developers build clean and maintainable applications.
TIMESTAMPS:
0:00 - Pattern Introduction
0:16 - Demo Introduction
1:02 - Memory Usage without Flyweight
2:05 - Identifying Intrinsic State
2:53 - Extracting Intrinsic State
4:19 - Implementing a Flyweight Factory
6:58 - Using the Flyweight Factory
7:54 - Memory Usage with Flyweight
8:27 - Flyweight Usage Tips
9:01 - Making the Flyweight Immutable (IMPORTANT)
9:30 - Conclusion
SOURCE CODE: github.com/SingletonSean/desi...
OTHER LINKS:
Become a Member: / @singletonsean
Donations: www.paypal.com/biz/fund?id=UB...

Наука

Опубликовано:

 

21 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 7   
@williamliu8985
@williamliu8985 2 года назад
Awesome, learn flyweight pattern and memory snap skill in 10 mininutes! Thanks for sharing, Sean!
@SingletonSean
@SingletonSean 2 года назад
Glad this was helpful William!
@shashanck84
@shashanck84 Год назад
Awesome stuff Sean
@Anecthor
@Anecthor 2 года назад
Thank you Sean. Good stuff as always.
@SingletonSean
@SingletonSean 2 года назад
Thanks Anecthor, glad this was helpful!!
@nickeax
@nickeax 2 года назад
Thank you very much, I learned a lot!
@ashes1746
@ashes1746 Год назад
i compare in my code with size = 10000000 and the Inclusive Size(Bytes) is more than origin(not using flyweightpattern) :((
Далее
Facade Pattern - DESIGN PATTERNS (C#/.NET)
8:33
Просмотров 4,4 тыс.
Composite Pattern - DESIGN PATTERNS (C#/.NET)
13:56
Просмотров 3,7 тыс.
Копия iPhone с WildBerries
01:00
Просмотров 283 тыс.
Hamster Kombat 20 July Mini Game
00:13
Просмотров 10 млн
Proxy Pattern - DESIGN PATTERNS (C#/.NET)
9:19
Просмотров 4,2 тыс.
The Ultimate Guide to C# Records
12:55
Просмотров 16 тыс.
Flyweight Design Pattern (C#)
12:02
Просмотров 7 тыс.
Simplify Configuration via Polymorphism
14:28
Просмотров 1,8 тыс.
Самый быстрый пылесос!
0:30
Просмотров 22 тыс.