Two examples of Flyweight and Flyweight Factory design patterns in Java and Python.
-
Updated
Mar 22, 2021 - Python
Two examples of Flyweight and Flyweight Factory design patterns in Java and Python.
Flyweight pattern for word processor in python3. Implemented a Flyweight factory that given a unicode code point returns the Flyweight character object for the character and font. Created RunArray for tracking character sequence in the word document.
A variant of the Flyweight pattern that allows the object to be modified without affecting other objects, and automatically shares the memory if the modified object is the same as other objects
Flyweight objects made stupidly easy
Python Design Patterns
Add a description, image, and links to the flyweight-pattern topic page so that developers can more easily learn about it.
To associate your repository with the flyweight-pattern topic, visit your repo's landing page and select "manage topics."