From 9009f0aa2042c1563efc565423962da737f40011 Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 2 Aug 2007 10:47:00 +0000 Subject: (svn r10747) -Codechange: add a variable that points to some index in the pool that is not beyond the first free pool item. It does not necessarily point to the first free item, but it reduces allocation time as it does not have to start at the first item in the pool to find the first free item. --- src/oldpool.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/oldpool.cpp') diff --git a/src/oldpool.cpp b/src/oldpool.cpp index 6a04eeee3..3cc5c8391 100644 --- a/src/oldpool.cpp +++ b/src/oldpool.cpp @@ -33,6 +33,7 @@ void OldMemoryPoolBase::CleanPool() this->total_items = 0; this->current_blocks = 0; this->blocks = NULL; + this->first_free_index = 0; } /** -- cgit v1.2.3-70-g09d2