| | |
Optimization
![]() |
There is no specific answer to this question, so I'll give you a general one..
First find out what need to be optimized? For this you can use tools like Rational/IBM Quantify (license issues) or Mocking Framework (in this you'll need to write some code of your own).
Once you know what has to be optimized, you can ask a specific question, then we can write more specific answers.
First find out what need to be optimized? For this you can use tools like Rational/IBM Quantify (license issues) or Mocking Framework (in this you'll need to write some code of your own).
Once you know what has to be optimized, you can ask a specific question, then we can write more specific answers.
a mocking framework won't tell you what needs optimising.
A profiler may, but not a mock object (if anything it will likely hide the reason for any performance problems).
Most often when people "optimise" code they are just guessing where the problems are, grasping at straws and doing things they once heard someone say would make things faster (and usually they don't of course).
A profiler may, but not a mock object (if anything it will likely hide the reason for any performance problems).
Most often when people "optimise" code they are just guessing where the problems are, grasping at straws and doing things they once heard someone say would make things faster (and usually they don't of course).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
•
•
Most often when people "optimise" code they are just guessing where the problems are, grasping at straws and doing things they once heard someone say would make things faster (and usually they don't of course).
One should know where to look when it comes for optimization.
I don't accept change; I don't deserve to live.
I've seen highly experienced people go wrong on "optimisation" when they didn't know the underlying machine instructions being generated (and few people know those).
That was C of course, but in Java deep knowledge is often also needed to get beyond the blatantly obvious stuff.
Things like loop and callstack optimisation aren't all that well known to many people.
SQL optimisation is an especially black art...
That was C of course, but in Java deep knowledge is often also needed to get beyond the blatantly obvious stuff.
Things like loop and callstack optimisation aren't all that well known to many people.
SQL optimisation is an especially black art...
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
•
•
a mocking framework won't tell you what needs optimising.
A profiler may, but not a mock object (if anything it will likely hide the reason for any performance problems).
The reason why I suggested this in the first place is I donno how accessible Rational Quantify (or other licensed tools) are to this guy.. if they aren't one can always work around it..
Finally, no tool tells you what to optimize (not even Quantify).. they just give you a report and then just go figure..
•
•
•
•
nice, but how are you going to trace the time needed for the functionality you replaced by those mocks (which usually is the expensive stuff like database and network operations)?
Will post teh code if possible.
•
•
•
•
You don't mock any objects ! Just define pointcuts for entry/exit of all classes/functions you wanna measure and add before()/after() to trace.
Will post teh code if possible.
Here is what the output looks like when I put it in an excel sheet.
Have posted the code used in code snippets. My first Java 5.0 code.
![]() |
Similar Threads
- All You Need for SEO (Search Engine Optimization) - Resources List (Search Engine Optimization)
- Optimize XP - A Windows XP Optimization Guide (Windows tips 'n' tweaks)
- System Optimization Tricks (Windows tips 'n' tweaks)
- PHP/MySQL Optimization Techniques (PHP)
- Is there any one here who knows page optimization ??? (Site Layout and Usability)
- Seeking Experienced Web Designer re: Validation & Optimization (HTML and CSS)
- a few search engine optimization questions (Search Engine Optimization)
Other Threads in the Java Forum
- Previous Thread: Assignment Help ASAP!
- Next Thread: AspectJ problem
| Thread Tools | Search this Thread |
2dgraphics account android api apple applet application arguments array arrays automation banking binary binarytree bluetooth chat chatprogramusingobjects class client code color component count database derby design eclipse eclipsedevelopment encryption error fractal game givemetehcodez graphics gridlayout gui homework html ide if_statement image integer interface j2me java javadesktopapplications javaprojects jlabel jni jpanel jtextfield julia keyword linux list macintosh map method methods midlethttpconnection mobile netbeans newbie nullpointerexception object open-source os problem producer program programming project projectideas property read recursion reference replaysolutions ria scanner search server set size sms sort sourcelabs splash sql sqlite stop string swing threads transforms tree ui unicode validation windows






