Hi all,
We are heavily relying on Firebird for our version control product, Plastic
SCM, and we have just found a big performance boost making a small change on
Charset.cs.
On our tests we have reduced overall time around 20% just changing the
following on Charset.cs, so we thought you might be interested:
instead of making the following switch statement each time a GetBytes was
invoked:
switch (this.systemName)
{
case "NONE":
mEncoding = Encoding.Default;
break;
case "OCTETS":
mEncoding = new BinaryEncoding();
break;
default:
mEncoding = Encoding.GetEncoding(this.systemName);
break;
}
We have moved it to the constructor and created a member variable
(mEncoding) to create the right one.
Afaik, the behaviour is still right, but performance is about 20% better.
Cheers,
pablo
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider