Re: Assembly string functions in i386 libc



"Sean C. Farley" <scf@xxxxxxxxxxx> writes:
On Thu, 12 Jul 2007, Dag-Erling Smørgrav wrote:
The first rule of optimization is: don't do it.
The second rule of optimization is: don't do it yet.
The third rule of optimization is: don't optimize what you haven't
measured.
I am a rule breaker at least for the first two. :) I tried to follow
the third rule.

Can you show us an actual application that spends a significant part
of its run time in strlen()?
My test program that loops over strlen().

So the answer is no, and you don't understand the third rule which you
claim to follow.

DES
--
Dag-Erling Smørgrav - des@xxxxxx
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Assembly string functions in i386 libc
    ... through libc, I thought it was beneficial to make it faster. ... The second rule of optimization is: ... The third rule of optimization is: ... I did not test ARM. ...
    (freebsd-arch)
  • Re: Assembly string functions in i386 libc
    ... The second rule of optimization is: ... The third rule of optimization is: ... I had thought I had tested the first type of test. ...
    (freebsd-arch)
  • Re: Assembly string functions in i386 libc
    ... libc, I thought it was beneficial to make it faster. ... The second rule of optimization is: ... The third rule of optimization is: don't optimize what you haven't measured. ... Dag-Erling Smørgrav - des@xxxxxx ...
    (freebsd-arch)