Heiko Schocher 1b6102718b common, env: optimize boottime
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 <hs@denx.de>
Cc: Tom Rini <trini@ti.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Wolfgang Denk <wd@denx.de>
2014-01-14 09:01:06 -05:00
..
2013-04-01 16:33:52 -04:00
2013-04-01 16:33:52 -04:00
2011-04-08 00:44:27 -04:00
2013-08-16 13:45:15 -04:00
2014-01-09 11:47:51 +02:00
2013-11-08 15:25:14 -05:00
2013-05-31 17:12:03 -05:00
2014-01-09 16:08:11 +01:00
2012-08-09 23:39:18 +02:00
2013-04-01 16:33:52 -04:00
2013-04-01 16:33:52 -04:00
2014-01-14 09:01:06 -05:00
2014-01-14 09:01:06 -05:00
2013-08-06 23:58:43 +05:30
2011-12-07 08:41:22 +01:00
2013-09-20 10:30:54 -04:00
2013-09-20 10:30:54 -04:00
2010-01-18 00:23:00 +01:00
2013-11-12 09:35:17 +01:00
2011-10-22 01:13:35 +02:00