From: Tom Rini Date: Tue, 14 Jan 2014 16:01:45 -0500 Subject: [U-Boot] common, env: optimize boottime In-Reply-To: <1387457104-3048-1-git-send-email-hs@denx.de> References: <1387457104-3048-1-git-send-email-hs@denx.de> Message-ID: <20140114210145.GN5181@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Dec 19, 2013 at 01:45:04PM +0100, Heiko Schocher wrote: > when creating the hashtable, for each environmentvariable > getenv(ENV_CALLBACK_VAR) and getenv(ENV_FLAGS_VAR) is called, > which costs at this point a lot of time. So call this two > getenv() calls only once. > > Boottime on the ids8313 board without this patch: > > 2013-12-19 13:38:22,894: NAND: 128 MiB > 2013-12-19 13:38:27,659: In: serial > (~4.8 sec) > > Bootime with this patch on the ids8313 board: > > 2013-12-19 13:40:25,332: NAND: 128 MiB > 2013-12-19 13:40:25,546: In: serial > (~0.2 sec) > > Signed-off-by: Heiko Schocher > Cc: Tom Rini > Cc: Joe Hershberger > Cc: Wolfgang Denk Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: