From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Thu, 28 Jan 2016 20:47:05 -0700 Subject: [U-Boot] [PATCH 3/9] test.py: calculate bad patterns on change only In-Reply-To: <1453964274-9129-3-git-send-email-swarren@wwwdotorg.org> References: <1453964274-9129-1-git-send-email-swarren@wwwdotorg.org> <1453964274-9129-3-git-send-email-swarren@wwwdotorg.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 27 January 2016 at 23:57, Stephen Warren wrote: > From: Stephen Warren > > A future patch will use the bad_patterns array in multiple places. Rather > than duplicating the code to calculate it, or even sharing it in a > function and simply calling it redundantly when nothing has changed, only > re-calculate the list when some change is made to it. This reduces work. > > Signed-off-by: Stephen Warren > --- > test/py/u_boot_console_base.py | 49 +++++++++++++++++++++--------------------- > 1 file changed, 25 insertions(+), 24 deletions(-) Acked-by: Simon Glass