Micro-Optimisation decreasing initial parsing time by 10%
authorHolger Freyther <zecke@selfish.org>
Sat, 18 Nov 2006 16:55:13 +0000 (16:55 +0000)
committerHolger Freyther <zecke@selfish.org>
Sat, 18 Nov 2006 16:55:13 +0000 (16:55 +0000)
commit56b7d78a034187f66e08f3b3e2de55bd878cf9b5
treed6f4033c0064f41c2205502d10c651e8710c96aa
parent9e61974759ef6e4ff9538a33bab0e82b1b4381dd
Micro-Optimisation decreasing initial parsing time by 10%
    python () {} and python __anonymous () {} are as the same
    says functions without a name. They get executed when the
    main bb file is completely parsed. This is used to set
    information like FILESDIR.
    This is a python method so it gets evaled which means compiled
    and executed a lot of times. By moving the code of the anonfunc
    into a proper method this is only compiled once. The result is
    is the 10% speed up when parsing.
    Reindent anonfuncs and new defs without tabs and four spaces
30 files changed:
classes/base.bbclass
classes/flow-lossage.bbclass
classes/gettext.bbclass
classes/multimachine.bbclass
classes/update-alternatives.bbclass
classes/update-rc.d.bbclass
packages/apache/apache_2.0.54.bb
packages/glib-2.0/glib-2.0.inc [new file with mode: 0644]
packages/glib-2.0/glib-2.0_2.12.0.bb
packages/glib-2.0/glib-2.0_2.12.1.bb
packages/glib-2.0/glib-2.0_2.12.3.bb
packages/glib-2.0/glib-2.0_2.2.3.bb
packages/glib-2.0/glib-2.0_2.4.5.bb
packages/glib-2.0/glib-2.0_2.4.6.bb
packages/glib-2.0/glib-2.0_2.6.0.bb
packages/glib-2.0/glib-2.0_2.6.1.bb
packages/glib-2.0/glib-2.0_2.6.2.bb
packages/glib-2.0/glib-2.0_2.6.3.bb
packages/glib-2.0/glib-2.0_2.6.4.bb
packages/glib-2.0/glib-2.0_2.8.1.bb
packages/glib-2.0/glib-2.0_2.8.2.bb
packages/glib-2.0/glib-2.0_2.8.4.bb
packages/glib-2.0/glib-2.0_2.8.6.bb
packages/grub/grub_0.97.bb
packages/images/slugos-image.bb
packages/linux/ixp4xx-kernel.inc
packages/linux/linux-amsdelta-2.6_2.6.16-omap2.bb
packages/lockstat/lockstat_1.4.10.bb
packages/nis/nis.inc
packages/pam/libpam_0.79.bb