nicko 2005/05/11 06:21:05
Modified: src/Layout PatternLayout.cs
src/Util PatternString.cs
Log:
Fixed preallocated hashtable size for static patterns
Revision Changes Path
1.21 +1 -1 logging-log4net/src/Layout/PatternLayout.cs
Index: PatternLayout.cs
===================================================================
RCS file: /home/cvs/logging-log4net/src/Layout/PatternLayout.cs,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- PatternLayout.cs 31 Jan 2005 02:32:10 -0000 1.20
+++ PatternLayout.cs 11 May 2005 13:21:05 -0000 1.21
@@ -766,7 +766,7 @@
/// </remarks>
static PatternLayout()
{
- s_globalRulesRegistry = new Hashtable(35);
+ s_globalRulesRegistry = new Hashtable(45);
s_globalRulesRegistry.Add("literal",
typeof(log4net.Util.PatternStringConverters.LiteralPatternConverter));
s_globalRulesRegistry.Add("newline",
typeof(log4net.Util.PatternStringConverters.NewLinePatternConverter));
1.13 +2 -2 logging-log4net/src/Util/PatternString.cs
Index: PatternString.cs
===================================================================
RCS file: /home/cvs/logging-log4net/src/Util/PatternString.cs,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- PatternString.cs 31 Jan 2005 22:56:49 -0000 1.12
+++ PatternString.cs 11 May 2005 13:21:05 -0000 1.13
@@ -39,7 +39,7 @@
/// This class functions similarly to the <see
cref="log4net.Layout.PatternLayout"/>
/// in that it accepts a pattern and renders it to a string. Unlike the
/// <see cref="log4net.Layout.PatternLayout"/> however the
<c>PatternString</c>
- /// does does not render properties of a specific <see
cref="LoggingEvent"/> but
+ /// does not render the properties of a specific <see
cref="LoggingEvent"/> but
/// of the process in general.
/// </para>
/// <para>
@@ -281,7 +281,7 @@
/// </summary>
static PatternString()
{
- s_globalRulesRegistry = new Hashtable(10);
+ s_globalRulesRegistry = new Hashtable(15);
s_globalRulesRegistry.Add("appdomain",
typeof(AppDomainPatternConverter));
s_globalRulesRegistry.Add("date",
typeof(DatePatternConverter));