CVR-Lib last update 20 Sep 2009

cvrPerformanceConfig.h File Reference

Definition of constants that are used to tweak the performance of some algorithm but need not be changed for every call of a method. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _CVR_PERFORMANCE_MATRIX_MATRIX_MULTIPLY   65
#define _CVR_PERFORMANCE_QR_DECOMPOSITION   50
#define _CVR_PERFORMANCE_SORT_STOP_QUICKSORT   10
#define _CVR_PERFORMANCE_SMALLOBJECTLIST_HEAP_SEGMENT_SIZE   100
#define _CVR_PERFORMANCE_LIST_OBJECT_SIZE_THRESHOLD   16


Detailed Description

Definition of constants that are used to tweak the performance of some algorithm but need not be changed for every call of a method.

Usually, these constants are architecture dependent, mostly cache. The default values in this file were determined on a P4 1600 with 512 RAM.

Author:
Peter Doerfler
Date:
09.02.2004
Id
cvrPerformanceConfig.h,v 1.4 2004/11/19 16:27:50 gquiros Exp

Define Documentation

#define _CVR_PERFORMANCE_LIST_OBJECT_SIZE_THRESHOLD   16

Object size threshold value for cvr::list (in bytes).

The list will be implemented as a smallObjectList for types whose size is less than or equal to this value, and as a std::list for all other types.

#define _CVR_PERFORMANCE_MATRIX_MATRIX_MULTIPLY   65

Multiplication of two matrices in cvr::matrix is faster if the second matrix is transposed first when that matrix is large.

Large is defined below.

#define _CVR_PERFORMANCE_QR_DECOMPOSITION   50

The QR decomposition algorithm (cvr::qrDecomposition) accesses the data matrix column wise.

Depending on the size it is faster to transpose first and transpose the results again.

#define _CVR_PERFORMANCE_SMALLOBJECTLIST_HEAP_SEGMENT_SIZE   100

The segment size of the heap in a smallObjectList.

Indicates the amount of nodes that will be allocated at once when there is no more available memory.

#define _CVR_PERFORMANCE_SORT_STOP_QUICKSORT   10

cvr::sort uses quicksort down to a certain number of elements to sort after which it uses a simple sorting algorithm.

The value below sets that threshold.


Generated on Sun Sep 20 22:08:24 2009 for CVR-Lib by Doxygen 1.5.8