Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

MVC question

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Report post to moderator
I asked this question already over in the general Java forum but this forum may give me a better answer. I think I've noticed a possible issue in Java. With Model View Controller pattern the model keeps the data and it is displayed in the view. However, this seems to mean you may have the same data in two places in the application simultaneously thereby wasting memory. Usually it's probably not a big deal, but if there is a massive amount of data in JTable or JList it could cut performance . In C++ you can use pointers to help get around some of these issues, but what do you do in Java? Does anyone know of any techniques to lessen this or am I just imagining a problem that's not really there?

Thanks
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
We don't allow crossposting, so I'll lock this topic. People who want to discuss your question, can do it in this thread. This forum is meant for questions regarding the SCJD certification.
 
Those cherries would go best on cherry cheesecake. Don't put those cherries on this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic