MSc Electronics, ICT
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
MSc Electronics, ICT
Originally posted by Roul Ravashimka:
I've got the same feeling that the two implementations won't be too different in terms of performance, but i have to measure it...
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
MSc Electronics, ICT
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Originally posted by Roul Ravashimka:
One of the questions their are going to ask is:"You add all these layers, what about that?".
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
MSc Electronics, ICT
Originally posted by Roul Ravashimka:
When I perform the first method in my application, it takes a while. I've wrote out some times, and most of the time went to the service locator. But the second time you perform a method, the service locator didn't need so much time. Because of the caching.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
MSc Electronics, ICT
could a profiler be used for this problem?
By mistake, i clicked on new post instead of post reply. Sorry.
Maybe a moderator could delete that post.
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Sure.
MSc Electronics, ICT
I can't say. You should probably check the features from your selected profiler product's documentation.Originally posted by roul ravashimka:
Can it also see when the instances create each other?
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
MSc Electronics, ICT
Generally speaking, most patterns don't have a noticeable effect on performance. Some do, but most don't.Would you think it's reasonable of doing tests of the patterns?
Such as memory, time, ...
As long as you add those layers as plain old Java objects (instead of, say, network calls), there shouldn't be much influence.I would rather look at the components around the patterns. By adding patterns, layers are added. Does this have a negative influence? I'ld say no.
Suppose you've got a compex system of EJB's, you could use some facades to loose the view to the complex subsystem and you add a layer.
What is more important, the nagetive side of adding a facade(adding a layer, code,...), or something possitive which hide a complex subsystem?
I'ld say the possitive: get lost of the complex subsystem.
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |