[Avida-SVN] r3414 - development/source/cpu
brysonda at myxo.css.msu.edu
brysonda at myxo.css.msu.edu
Mon Sep 21 12:33:37 PDT 2009
Author: brysonda
Date: 2009-09-21 15:33:37 -0400 (Mon, 21 Sep 2009)
New Revision: 3414
Modified:
development/source/cpu/cTestCPU.cc
Log:
Small performance tweak to cTestCPU::ProcessGestation. Removed a seemingly unnecessary call checking that a genome being tested has a genome. All tests pass. 1-2% gain in performance.
Modified: development/source/cpu/cTestCPU.cc
===================================================================
--- development/source/cpu/cTestCPU.cc 2009-09-21 18:32:38 UTC (rev 3413)
+++ development/source/cpu/cTestCPU.cc 2009-09-21 19:33:37 UTC (rev 3414)
@@ -157,8 +157,7 @@
int time_used = m_res_cpu_cycle_offset; // Note: the offset is zero by default if no resources being used @JEB
organism.GetHardware().SetTrace(tracer);
- while (time_used < time_allocated && organism.GetHardware().GetMemory().GetSize() &&
- organism.GetPhenotype().GetNumDivides() == 0 && !organism.IsDead())
+ while (time_used < time_allocated && organism.GetPhenotype().GetNumDivides() == 0 && !organism.IsDead())
{
time_used++;
More information about the Avida-cvs
mailing list