Hi!
On Jan 8, 2009, at 4:49 PM, Jay Pipes wrote:
1) Is the gettimeofday() function reliable and fast on Solaris? If
so, there really is no need to use gethrtime() here...
If http://blogs.sun.com/ksrini/entry/we_take_java_performance_very is
to be believed gettimeofday() works and is fast. After all it is used
in Java, and if it would be slow/wrong I think someone had complained
by now...
2) Is the proposed solution (of moving the above code out of mysys
and into Session) a good idea?
Assuming the above holds true and no one else is using it (what about
HP/UX, btw? you mentioned that, too) I think it would be appropriate
to move it up into Session. At least that would save one function call
and could possibly be inlined and whatnot (and if not, you don't lose
anything but potentially gain readability).
cheers,
-k
p.s.: someone else probably knows more about the Solaris performance
thing, but as with other things in mysys, I'd bet this is legacy...
--
Kay Roepke
Software Engineer, MySQL Enterprise Tools
Sun Microsystems GmbH Sonnenallee 1, DE-85551 Kirchheim-Heimstetten
Geschaeftsfuehrer: Thomas Schroeder, Wolfang Engels, Dr. Roland Boemer
Vorsitz d. Aufs.rat.: Martin Haering HRB MUC 161028
_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help : https://help.launchpad.net/ListHelp