Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13204/Impl
Modified Files:
SessionFactoryImpl.cs SessionFactoryObjectFactory.cs
Log Message:
Fixed performance issue regarding empty strings
Index: SessionFactoryImpl.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/SessionFactoryImpl.cs,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** SessionFactoryImpl.cs 13 Sep 2004 07:30:56 -0000 1.31
--- SessionFactoryImpl.cs 21 Sep 2004 09:58:24 -0000 1.32
***************
*** 141,145 ****
// has been set so just use the default of the DataProvider.
string isolationString = PropertiesHelper.GetString( Cfg.Environment.Isolation, properties, String.Empty );
! if( isolationString!=String.Empty )
{
try
--- 141,145 ----
// has been set so just use the default of the DataProvider.
string isolationString = PropertiesHelper.GetString( Cfg.Environment.Isolation, properties, String.Empty );
! if( isolationString.Length > 0)
{
try
Index: SessionFactoryObjectFactory.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/SessionFactoryObjectFactory.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SessionFactoryObjectFactory.cs 9 Aug 2004 03:25:55 -0000 1.1
--- SessionFactoryObjectFactory.cs 21 Sep 2004 09:58:24 -0000 1.2
***************
*** 52,56 ****
{
string nameMsg = "unnamed";
! if(name!=null && name!=String.Empty)
{
nameMsg = name;
--- 52,56 ----
{
string nameMsg = "unnamed";
! if(name!=null && name.Length > 0)
{
nameMsg = name;
***************
*** 61,65 ****
Instances[uid] = instance;
! if(name!=null && name!=String.Empty)
{
log.Info("Factory name:" + name);
--- 61,65 ----
Instances[uid] = instance;
! if(name!=null && name.Length > 0)
{
log.Info("Factory name:" + name);
***************
*** 81,85 ****
public static void RemoveInstance(string uid, string name, IDictionary properties)
{
! if(name!=null && name!=String.Empty)
{
log.Info("unbinding factory: " + name);
--- 81,85 ----
public static void RemoveInstance(string uid, string name, IDictionary properties)
{
! if(name!=null && name.Length > 0)
{
log.Info("unbinding factory: " + name);
|