• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Eung maeng
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • 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,
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • 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.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!