www/firefox3 Profile-Guided Optimization

Mario Sergio Fujikawa Ferreira lioux at FreeBSD.org
Sun Feb 22 23:37:34 PST 2009


Hi,

	I thought we should consider adding an OPTIONS entry to
allow building firefox3 with Profile-Guided Optimization.

	The firefox3 build toolchain supports it out of the box as
mentioned on

https://developer.mozilla.org/en/Building_with_Profile-Guided_Optimization

and this should yield a massive performance improvement.

	I began a patch for the www/firefox3 port. Add

mozconfig-profile_guided_optimization.in

to FILESDIR. Then, apply the attached patch to the port's Makefile.

	That is just a preliminary try out. It does not work yet.
According to the mozilla documentation, the pre-build target I added
(commented out) to the Makefile should do the job.

	However, the port currently uses the build toolchain through
the configure-stage-generated Makefiles which I cannot decipher
when trying to find a way to invoke the equivalent of

$ gmake -f client.mk profiledbuild

when WITH_PGO is defined.

	Does anyone have an idea on how to procceed?

	Regards,

-- 
Mario S F Ferreira - DF - Brazil - "I guess this is a signature."
feature, n: a documented bug | bug, n: an undocumented feature
-------------- next part --------------
mk_add_options PROFILE_GEN_SCRIPT='@PYTHON@ $(OBJDIR)/_profile/pgo/profileserver.py'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-diff
Size: 1547 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20090223/f7740fbf/patch.bin


More information about the freebsd-gnome mailing list