Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: My project development issues ?

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default My project development issues ?

    hello friend's
    I have developed a technical forum just like our java programming forum using java.But after hosting i found it slower.I work a lot on make my project loads faster.I tried to minimize the connection strings.But still it loads slower than the other websites.
    .
    Can anyone tell me how can i optimize the code ?
    Is there any tools available for optimizing the codes ?
    It seems like java loads slower than php is it so ?


  2. #2
    Member
    Join Date
    Nov 2011
    Posts
    39
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: My project development issues ?

    Hi,

    I think the speed depends on a number of reasons such as server configuration (memory, network, ...), design flaws in code... In general, Java is always slower than PHP, the different is not too much however.

    There isn't any tool for optimizing the code with one click, but there are tools that helps you see your flaws and decide what needs to be optimized. Take a look at Sonar tool.

    Spring 3
    Last edited by cafeteria84; January 22nd, 2012 at 03:59 PM.

  3. #3
    Junior Member
    Join Date
    Jun 2011
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: My project development issues ?

    how can you say that php is more faster than java.Even java is a compiled and interpreted language while in case of php byte code creation and interpretation take place at one time.Please give some technical reason why PHP is more faster than java.
    .
    Is there any open source web application(developed on MVC framework) available where i can see the real time applicable code ?

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: My project development issues ?

    Quote Originally Posted by cafeteria84
    In general, Java is always slower than PHP
    Really? Have any evidence to back this up?
    ---
    Optimizing code is context dependent - we have no context and so cannot provide specific advice. You say it is slower - compared to what? Are you accessing a database? If so, is this the bottleneck - is the database indexed properly?

  5. #5
    Member
    Join Date
    Nov 2011
    Posts
    39
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: My project development issues ?

    Quote Originally Posted by copeg View Post
    Really? Have any evidence to back this up?
    ---
    Optimizing code is context dependent - we have no context and so cannot provide specific advice. You say it is slower - compared to what? Are you accessing a database? If so, is this the bottleneck - is the database indexed properly?
    Well, it's obviously so I don't want to debate on this. Could you show evidence that I am wrong?

    Spring 3
    Last edited by cafeteria84; January 22nd, 2012 at 04:01 PM.

  6. #6
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: My project development issues ?

    Quote Originally Posted by cafeteria84 View Post
    Well, it's obviously so I don't want to debate on this. Could you show evidence that I am wrong?
    You're kidding right? The burden of proof does not reside on my shoulders - you made the claim, you provide the evidence. I am not making making an argument one way or another, rather I do not like to see speculative rumors thrown about without solid ground to back up the claim - especially if the argument trying to back the claim is something along the lines of 'prove me wrong'
    Last edited by copeg; December 6th, 2011 at 11:30 AM.

Similar Threads

  1. RFC - Development laptop
    By Blackbird in forum Computer Support
    Replies: 3
    Last Post: July 5th, 2020, 06:12 AM
  2. Android Development
    By bgroenks96 in forum Java ME (Mobile Edition)
    Replies: 3
    Last Post: August 30th, 2013, 10:03 PM
  3. [PROJECT] Java MMORPG Development
    By Quasar in forum The Cafe
    Replies: 11
    Last Post: February 21st, 2013, 03:48 PM
  4. Replies: 1
    Last Post: April 21st, 2011, 09:59 AM
  5. Replies: 2
    Last Post: April 12th, 2010, 11:13 AM