Re: gethostbyname() and resolv.conf updates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/6/21 Pádraig Brady <P@xxxxxxxxxxxxxx>:
>
> Sorry I haven't been following this really, but I loath
> config options that aren't absolutely required, and this
> seems like a place where we could just stat() (cache) always.
> What's the problem with doing that?

I too would be really interested in any real-world application for
which the cost of the stat() was any kind of major performance hit.

> p.s. not having looked at the code,
> the atomic ops seems unusual in the
> presence of the static last_... variables.

We are implicitly relying on aligned word size assignment atomicity
here it looks like, yes.  I haven't looked if there are other places
in glibc doing this or if there's some infrastructure for it.  To be
clear this patch is derived from the OpenSUSE one; I didn't change the
semantics there.
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux