Originally posted by aaron UD:
i am using only one LDAPAttribute object, but i am redefining it using 'new' 5 times throughout the loop. so overall, its about 150,000 uses of 'new' for the same variable.
Just to clarify the terminology, every "new" creates a new object, which then gets referenced by your variable, which is just a reference to an object.
I doubt that this is your bottleneck, though.
I think you are correct in your guess about the delay being due to database access, but the nature of the slowdown is confusing me. any more help would be greatly appreciated.
P6Spy is a nice free tool to analyze db performance problems. To analyze your
java code, you'd probably use some profiler...
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