• Post Reply 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

what should I check and change for speed up of a processing

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone suggest me how and what I need to check and change for speed up to run a program?

I created the API interface program. However, I have been testing 11,000 records in text file to read. It tooks for a longer than expectation.

Thus, I am trying to reduce a time.

If you can give any suggestion, it would be appreciate.

thanks,
 
Rancher
Posts: 43026
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On what was your expectation of execution based? Or was it rather a hope that it would be faster?

The first thing to do would be to determine which part takes up the most time - the reading of the file or the processing of its contents. Based on that you can take further action.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You've done a great first step - getting the thing running before you try to tune it. Doing things the other way around usually leads to putting lots of effort and complexity into the wrong thing.

Ulf's recommendation to hunt down the slow parts is right on. Google for "java performance monitor" and see a variety of tools to help you. JAMon seems to be a very good free one and the author hangs here at the ranch.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic