Bookmark Topic Watch Topic
  • New Topic

Java - memory allocation  RSS feed

 
Raju Parab
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

Which of the following is better approach for better performance.

1. Class with lot of method (source code - 6000 line)
Or
2. Mutliple classes with few methods (100 * 60 class)

There is definitely modularity in second case, but in terms of performance is there any difference?

Is there memory allocation difference?

 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't crosspost -- it wastes people time and effort.

http://www.coderanch.com/t/454300/Performance/java/Java-memory-allocation

Henry
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!