2 Replies Latest reply on Jul 29, 2010 1:14 PM by gribeiro

    Best approach to various List instances

    gribeiro

      Hi, guys !


      I´m developing using Seam with some friends and we are building an app for human resources management (not commercially !).


      Let´s suppose that two users have accessed different pages using five same Lists populating some combos and the respective managed beans are using conversation scope. What would be the best approach to instantiate and share the Lists between the different pages to minimize memory consumption ?


      Thanks in advance for any help about this matter.

        • 1. Re: Best approach to various List instances
          sean.tozer

          If you truly wish to minimize memory consumption, I would change the list components to be application scoped.


          It sounds like you're looking at very premature optimization, though, which is generally something to avoid. Unless they're very clearly large, unchanging lists, I wouldn't worry too much about the memory footprint.

          • 2. Re: Best approach to various List instances
            gribeiro

            Hi, Sean !


            Thank you for the inspiring hints specially about my premature optimization concern. (That´s how things go when you´re an eager person !)


            Regards,


            Geovanny Ribeiro