Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. Did anyone ever implemented flyweight design pattern?

Did anyone ever implemented flyweight design pattern?

Scheduled Pinned Locked Moved Design and Architecture
designregexarchitecturequestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CPalliniC Offline
    CPalliniC Offline
    CPallini
    wrote on last edited by
    #1

    I'm curious about... :-D

    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

    In testa che avete, signor di Ceprano?

    L P 2 Replies Last reply
    0
    • CPalliniC CPallini

      I'm curious about... :-D

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      CPallini wrote:

      Did anyone ever implemented flyweight design pattern?

      Yes

      CPalliniC 1 Reply Last reply
      0
      • L led mike

        CPallini wrote:

        Did anyone ever implemented flyweight design pattern?

        Yes

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        Could you, please, detail your experience? For instance, what are (1) The kind of project requirements that made appealing that pattern. (2) The design issues you faced. Thank you in advance. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

        In testa che avete, signor di Ceprano?

        L 1 Reply Last reply
        0
        • CPalliniC CPallini

          Could you, please, detail your experience? For instance, what are (1) The kind of project requirements that made appealing that pattern. (2) The design issues you faced. Thank you in advance. :)

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          CPallini wrote:

          (1) The kind of project requirements that made appealing that pattern.

          Not normally a requirements based reason. All things are (or should be) traceable back to a requirement but the flyweight pattern is mainly about optimizing memory/resource usage, which is not a requirement that a software developer should need. A generalization of a design scenario is the system will need to use the same small number of items I very large number of times, potentially infinitely. Does that help?

          CPallini wrote:

          (2) The design issues you faced.

          None. It's a very simple design, all of the best ones are.... very simple. ;)

          CPalliniC 1 Reply Last reply
          0
          • L led mike

            CPallini wrote:

            (1) The kind of project requirements that made appealing that pattern.

            Not normally a requirements based reason. All things are (or should be) traceable back to a requirement but the flyweight pattern is mainly about optimizing memory/resource usage, which is not a requirement that a software developer should need. A generalization of a design scenario is the system will need to use the same small number of items I very large number of times, potentially infinitely. Does that help?

            CPallini wrote:

            (2) The design issues you faced.

            None. It's a very simple design, all of the best ones are.... very simple. ;)

            CPalliniC Offline
            CPalliniC Offline
            CPallini
            wrote on last edited by
            #5

            led mike wrote:

            Does that help?

            Yes. Thanks a lot. I really appreciate your replies. :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

            In testa che avete, signor di Ceprano?

            1 Reply Last reply
            0
            • CPalliniC CPallini

              I'm curious about... :-D

              If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

              P Offline
              P Offline
              Paul Conrad
              wrote on last edited by
              #6

              I've never heard of it. What is it? Sounds like some kind of lightweight design approach.

              "The clue train passed his station without stopping." - John Simmons / outlaw programmer

              CPalliniC 1 Reply Last reply
              0
              • P Paul Conrad

                I've never heard of it. What is it? Sounds like some kind of lightweight design approach.

                "The clue train passed his station without stopping." - John Simmons / outlaw programmer

                CPalliniC Offline
                CPalliniC Offline
                CPallini
                wrote on last edited by
                #7

                Paul Conrad wrote:

                I've never heard of it. What is it? Sounds like some kind of lightweight design approach.

                ...for a large numbers of objects, see, for instance http://en.wikipedia.org/wiki/Flyweight_pattern[^] :)

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                [my articles]

                In testa che avete, signor di Ceprano?

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups