Flyweight is a software design pattern. A Flyweight is an object that minimizes memory occupation by sharing as much data as possible with other similar objects; it is a way to use objects in large numbers when a simple representation would use an unacceptable amount of memory. Often some parts of the object state can be shared and it's common to put them in external data structures and pass them to the flyweight objects temporarily when they are used.A classic example usage of the flyweight pattern are the data structures for graphical representation of characters in a word processor. It would be nice to have, for each character in a document, a glyph object containing its font outline, font metrics, and other formatting data, but it would amount to hundreds or thousands of bytes for each character.
| Property | Value |
| p:abstract
| - Flyweight is a software design pattern. A Flyweight is an object that minimizes memory occupation by sharing as much data as possible with other similar objects; it is a way to use objects in large numbers when a simple representation would use an unacceptable amount of memory. Often some parts of the object state can be shared and it's common to put them in external data structures and pass them to the flyweight objects temporarily when they are used.A classic example usage of the flyweight pattern are the data structures for graphical representation of characters in a word processor. It would be nice to have, for each character in a document, a glyph object containing its font outline, font metrics, and other formatting data, but it would amount to hundreds or thousands of bytes for each character. Instead, for every character there might be a reference to a flyweight glyph object shared by every instance of the same character in the document; only the position of each character (in the document and/or the page) would need to be stored externally. (en)
- Шаблон Flyweight (Приспособленец) используется для облегчения работы с большим количеством мелких объектов. (ru)
- El patrón Flyweight sirve para eliminar o reducir la redundancia cuando tenemos gran cantidad de objetos que contienen información idéntica, además de lograr un equilibrio entre flexibilidad y rendimiento (uso de recursos). (es)
- Nella programmazione ad oggetti, il Flyweight è uno dei pattern fondamentali, definiti originariamente dalla gang of four. Flyweight è un Design pattern che permette di separare la parte variabile di una classe dalla parte che può essere riutilizzata, in modo tale da poter avere quest'ultima condivisa fra istanze differenti della parte variabile. (it)
- Flyweight é um padrão de projeto de software apropriado quando vários objetos devem ser manipulados, e esses não suportam dados adicionais. No padrão flyweight não existe ponteiros para os métodos do dado pois isto consome muita memória. Em contrapartida são chamadas sub-rotinas diretamente para acessar o dado. Um exemplo é o processador de texto. Cada caractere representa um objeto que possui uma família de fonte, um tamanho de fonte e outras informações sobre o símbolo. Como imaginado, um documento grande com tal estrutura de dados facilmente ocuparia toda a memória disponível no sistema. Para resolver o problema, como muitas dessas informações são repetidas, o flyweight é usado para reduzir os dados. Cada objeto de caractere contém uma referência para outro objeto com suas respectivas propriedades. (pt)
- Das Flyweight, auch Fliegengewicht genannt, ist ein Entwurfsmuster aus dem Bereich der Softwareentwicklung und gehört zu der Kategorie der Strukturmuster (Structural Patterns).Es wird verwendet, wenn eine große Anzahl von Objekten benötigt wird, die sich bestimmte variable Informationen teilen und eine herkömmliche Implementierung unverhältnismäßig viele Ressourcen erfordern würde. Das Fliegengewicht ist ein Entwurfsmuster der so genannten GoF-Muster. (de)
|
| p:date
| - 2008-05-01 00:00:00.000000 (xsd:date)
|
| p:hasPhotoCollection
| |
| p:wikiPageUsesTemplate
| |
| rdf:type
| |
| rdfs:comment
| - Flyweight is a software design pattern. A Flyweight is an object that minimizes memory occupation by sharing as much data as possible with other similar objects; it is a way to use objects in large numbers when a simple representation would use an unacceptable amount of memory. Often some parts of the object state can be shared and it's common to put them in external data structures and pass them to the flyweight objects temporarily when they are used.A classic example usage of the flyweight pattern are the data structures for graphical representation of characters in a word processor. It would be nice to have, for each character in a document, a glyph object containing its font outline, font metrics, and other formatting data, but it would amount to hundreds or thousands of bytes for each character. (en)
- Шаблон Flyweight (Приспособленец) используется для облегчения работы с большим количеством мелких объектов. (ru)
- El patrón Flyweight sirve para eliminar o reducir la redundancia cuando tenemos gran cantidad de objetos que contienen información idéntica, además de lograr un equilibrio entre flexibilidad y rendimiento (uso de recursos). (es)
- Nella programmazione ad oggetti, il Flyweight è uno dei pattern fondamentali, definiti originariamente dalla gang of four. Flyweight è un Design pattern che permette di separare la parte variabile di una classe dalla parte che può essere riutilizzata, in modo tale da poter avere quest'ultima condivisa fra istanze differenti della parte variabile. (it)
- Flyweight é um padrão de projeto de software apropriado quando vários objetos devem ser manipulados, e esses não suportam dados adicionais. No padrão flyweight não existe ponteiros para os métodos do dado pois isto consome muita memória. (pt)
- Das Flyweight, auch Fliegengewicht genannt, ist ein Entwurfsmuster aus dem Bereich der Softwareentwicklung und gehört zu der Kategorie der Strukturmuster (Structural Patterns).Es wird verwendet, wenn eine große Anzahl von Objekten benötigt wird, die sich bestimmte variable Informationen teilen und eine herkömmliche Implementierung unverhältnismäßig viele Ressourcen erfordern würde. Das Fliegengewicht ist ein Entwurfsmuster der so genannten GoF-Muster. (de)
|
| rdfs:label
| - Flyweight pattern (en)
- Poids-mouche (patron de conception) (fr)
- Flyweight パターン (ja)
- Приспособленец (шаблон проектирования) (ru)
- Flyweight (patrón de diseño) (es)
- Flyweight pattern (it)
- Flyweight (pt)
- Flyweight (de)
|
| owl:sameAs
| |
| skos:subject
| |
| foaf:page
| |
| is p:disambiguates
of | |
| is p:redirect
of | |
| is owl:sameAs
of | |