From: <hv...@us...> - 2012-11-27 11:08:26
|
Revision: 57408 http://firebird.svn.sourceforge.net/firebird/?rev=57408&view=rev Author: hvlad Date: 2012-11-27 11:08:15 +0000 (Tue, 27 Nov 2012) Log Message: ----------- Use InlineStorage to avoid (costly) memory allocation. Modified Paths: -------------- firebird/trunk/src/jrd/PreparedStatement.cpp Modified: firebird/trunk/src/jrd/PreparedStatement.cpp =================================================================== --- firebird/trunk/src/jrd/PreparedStatement.cpp 2012-11-26 05:50:30 UTC (rev 57407) +++ firebird/trunk/src/jrd/PreparedStatement.cpp 2012-11-27 11:08:15 UTC (rev 57408) @@ -283,7 +283,7 @@ // ASF: Input parameters don't come necessarily in ascending or descending order, // so I changed the code to use a SortedArray. - SortedArray<const dsql_par*, EmptyStorage<const dsql_par*>, const dsql_par*, + SortedArray<const dsql_par*, InlineStorage<const dsql_par*, 16>, const dsql_par*, DefaultKeyValue<const dsql_par*>, ParamCmp> params; for (size_t i = 0; i < dsqlMsg->msg_parameters.getCount(); ++i) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |