]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg : Cache the environment variable into memory to enhance
authorQiu Shumin <shumin.qiu@intel.com>
Fri, 1 Apr 2016 01:02:20 +0000 (09:02 +0800)
committerQiu Shumin <shumin.qiu@intel.com>
Fri, 15 Apr 2016 03:10:30 +0000 (11:10 +0800)
commitb62bb8854fc5ab36b9b88f8bee9a276558bbcd96
treea5e9c6c47a3d79fb833905c8e609d332322f13a2
parent7a5f1426c57bcaaa87c5c9a86c5ab2090c890453
ShellPkg : Cache the environment variable into memory to enhance
the performance.

Currently UEFI Shell reads variable storage to get the environment
variables every time running a new command. And reading(writing)
UEFI variables is a high cost operation on most platforms. In order
to enhance the performance this patch read the variable storage once
and cache the environment variables in memory. Every further 'set'
command will save the variable not only to Shell cache, but also the
flash variable storage.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Reviewed-by:Ruiyu Ni <ruiyu.ni@intel.com>
ShellPkg/Application/Shell/Shell.c
ShellPkg/Application/Shell/ShellEnvVar.c
ShellPkg/Application/Shell/ShellEnvVar.h
ShellPkg/Application/Shell/ShellProtocol.c