Optimizations.
Pawel Jakub Dawidek
nick at garage.freebsd.pl
Fri May 16 02:45:05 PDT 2003
On Fri, May 16, 2003 at 06:47:49PM +1000, Peter Jeremy wrote:
+> >Look at functions in /sys/kern/kern_tc.c. There are so many little
+> >functions. How about put __inline here and there?
+>
+> How about you try this and post some results showing what effect this
+> has - both at the micro-benchmark level and for a real-world
+> application (like a proxy or load balancer).
Ehh, this is just an example to show that there are places that could be
optimized without loosing clean code.
Ok, this is going to nowhere.
+> >And second thing. Does anybody think about representing time in BCD code?
[...]
+> At the end, it's not clear what you gain. You still need the ability
+> to perform arithmetic to convert between UTC and local time. All you've
+> saved is the binary-to-decimal conversion - which is trivial compared
+> to all the other overheads.
I don't have experience in this topic, but there was some time ago long
discussion about new time representation. And I think one of the biggest
problem is to increase second when we got 999999 microseconds.
In current implementation there are some hacks (_I_think_) to speedup
this and in BCD arithmetic this is natural.
Of course I may be wrong, but this is only suggestion/idea.
PS. May intetion wasn't to start war. IMHO microoptimizations could
increase performance - that's all. Let's stop this thread here,
because as I see and as I said it's going to nowhere.
--
Pawel Jakub Dawidek pawel at dawidek.net
UNIX Systems Programmer/Administrator http://garage.freebsd.pl
Am I Evil? Yes, I Am! http://cerber.sourceforge.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 305 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20030516/18128b13/attachment-0001.bin
More information about the freebsd-hackers
mailing list