[K12OSN] openoffice quick startup
Angus Carr
acarr at saskforestcentre.ca
Thu Dec 2 17:58:25 UTC 2004
Rob Owens wrote:
>I saw this on a website discussing the SimplyMEPIS distro. They say it will cut in half the time it takes for openoffice to load.
>
>(as root):
>oooprelink -f
>
>I'm in Windows now and can't try it out. If anybody does try it, please post your results to the list.
>
>-Rob
>
>_______________________________________________
>No banners. No pop-ups. No kidding.
>Make My Way your home on the Web - http://www.myway.com
>
>_______________________________________________
>K12OSN mailing list
>K12OSN at redhat.com
>https://www.redhat.com/mailman/listinfo/k12osn
>For more info see <http://www.k12os.org>
>
>
>
On a Pentium III laptop with 256 MB RAM, and not much else going on,
Gnome launched, used wall clock time with an external stopwatch from
time the mouseclick to launch from the menus. I have pasted in below the
prelink script I used, which is based on debian's script, but uses FC3
paths (Using K12LTSP 4.2.0 beta4). The following is a single test, so
this is not exhaustive.
28 seconds to splashscreen, 49 to OOwriter being ready to accept input.
Flush the cache*, then...
20 seconds to splashscreen, 40 to oowriter being ready to accept input.
* dd if=/dev/zero of=/tmp/cacheflush bs=1024 count=1000000 && dd
if=/tmp/cacheflush of=/dev/zero && rm /tmp/cacheflush
===============================
#!/bin/sh
set -e
prelink="false"
#DEBUG="--verbose"
help() {
echo "oooprelink -- Prelink OpenOffice.org's binaries"
echo "-----------------------------------------------"
echo "How this script can be called:"
echo "oooprelink -- determines whether to do prelinking"
echo " from /etc/openoffice/openoffice.conf"
echo "oooprelink -u|--unprelink -- force unprelinking"
echo "oooprelink -f|--force -- force prelinking"
echo "oooprelink -h|--help -- show this help"
exit 1
}
if [ "$1" = "-f" -o "$1" = "--force" ]; then
prelink="true"
elif [ "$1" = "-u" -o "$1" = "--unprelink" ]; then
prelink="false"
elif [ "$1" = "-h" -o "$1" = "--help" ]; then
help
elif [ "$1" = "" ]; then
sleep 1s
else
help
fi
if [ "$prelink" = "true" ]; then
echo -n "Prelinking OpenOffice.org binaries... "
/usr/sbin/prelink $DEBUG \
--ld-library-path=/usr/lib/ooo-1.1/program \
--conserve-memory /usr/lib/ooo-1.1
if [ ! -d /var/state/openoffice ]; then
mkdir -p /var/state/openoffice
fi
touch /var/state/openoffice/ooo_is_prelinked
echo "done."
elif [ "$prelink" = "false" ]; then
if [ -f /var/state/openoffice/ooo_is_prelinked ]; then
echo -n "Undoing prelinking of OpenOffice.org binaries... "
/usr/sbin/prelink --undo --all $DEBUG \
--ld-library-path=/usr/lib/ooo-1.1/program \
--conserve-memory /usr/lib/ooo-1.1 \
2>/dev/null
rm -f /var/state/openoffice/ooo_is_prelinked
echo "done."
fi
else
echo -n "Unknown value for prelink variable in "
echo "/etc/openoffice/settings.debconf"
exit 1
fi
More information about the K12OSN
mailing list