Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jul 2005 09:25:27 +0200
From:      Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
To:        Nikos Ntarmos <ntarmos@ceid.upatras.gr>
Cc:        hackers@freebsd.org, andrit@ukr.net
Subject:   Re: hot path optimizations in uma_zalloc() & uma_zfree()
Message-ID:  <20050704092527.694c3057.corecode@fs.ei.tum.de>
In-Reply-To: <20050704010908.GA17696@diogenis.ceid.upatras.gr>
References:  <000d01c57cf7$b9b6f9f0$29931bd9@ertpc> <20050630163126.GA7365@diogenis.ceid.upatras.gr> <001401c57ef0$dd489720$34bf5450@ertpc> <20050704010908.GA17696@diogenis.ceid.upatras.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
--Signature=_Mon__4_Jul_2005_09_25_27_+0200_9=zCeoo/_5gB51gV
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Lately Nikos Ntarmos <ntarmos@ceid.upatras.gr> said:
> Ummm... What compiler version are you use? The pointer variant produces
> faster code for me on both NetBSD/alpha (gcc 3.3.3) and Linux/x86 (gcc
> 3.3.5), using both -O0 and -O2 (other compiler flags also tested with
> similar results). Perhaps something specific to FreeBSD then? I guess
> I'll have to set up a FBSD box and have a look at it, when I catch up
> with some of the other stuff in my todo list...

This is micro-optimization at its best. I doubt it has any influence in
real world scenarios. And if it does, something else is extremely broken.
You don't want to takt the route and implement it in assembler?

Besides, I guess it's totally CPU dependant, how stuff can be pipelined,
all memory locations ought to be in the cache anyways.

cheers
  simon

--=20
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low $$$ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \

--Signature=_Mon__4_Jul_2005_09_25_27_+0200_9=zCeoo/_5gB51gV
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (DragonFly)

iD8DBQFCyORsr5S+dk6z85oRAj0WAJ9AHFKz3lccxKIvZczxtCh3GMVIJwCg11iT
WTkjSYfDvzorUtlYglOob7w=
=3Vev
-----END PGP SIGNATURE-----

--Signature=_Mon__4_Jul_2005_09_25_27_+0200_9=zCeoo/_5gB51gV--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050704092527.694c3057.corecode>