Click here to Skip to main content
15,904,653 members
Home / Discussions / C#
   

C#

 
GeneralKeyword.... Pin
Steve McLenithan28-Jun-03 17:41
Steve McLenithan28-Jun-03 17:41 
GeneralRe: Keyword.... Pin
Bo Hunter28-Jun-03 18:19
Bo Hunter28-Jun-03 18:19 
GeneralRe: Keyword.... Pin
Steve McLenithan28-Jun-03 18:36
Steve McLenithan28-Jun-03 18:36 
QuestionHow Do I: Write an Addin for IE in C# Pin
Rahul Singh28-Jun-03 13:48
Rahul Singh28-Jun-03 13:48 
AnswerRe: How Do I: Write an Addin for IE in C# Pin
Mazdak29-Jun-03 4:32
Mazdak29-Jun-03 4:32 
AnswerRe: How Do I: Write an Addin for IE in C# Pin
J. Dunlap29-Jun-03 8:32
J. Dunlap29-Jun-03 8:32 
GeneralRe: How Do I: Write an Addin for IE in C# Pin
leppie29-Jun-03 9:35
leppie29-Jun-03 9:35 
GeneralRe: How Do I: Write an Addin for IE in C# Pin
Rocky Moore30-Jun-03 0:42
Rocky Moore30-Jun-03 0:42 
GeneralWeb Service Pin
puppiesLover28-Jun-03 8:57
puppiesLover28-Jun-03 8:57 
GeneralRe: Web Service Pin
Mazdak28-Jun-03 9:27
Mazdak28-Jun-03 9:27 
GeneralSystem.Web.Services not available Pin
puppiesLover28-Jun-03 8:36
puppiesLover28-Jun-03 8:36 
GeneralRe: System.Web.Services not available Pin
Mazdak28-Jun-03 9:30
Mazdak28-Jun-03 9:30 
Generalunable to use mouse in combobox Pin
monrobot1328-Jun-03 5:24
monrobot1328-Jun-03 5:24 
GeneralRe: unable to use mouse in combobox Pin
leppie28-Jun-03 5:57
leppie28-Jun-03 5:57 
GeneralRe: unable to use mouse in combobox Pin
James T. Johnson28-Jun-03 7:01
James T. Johnson28-Jun-03 7:01 
GeneralRe: unable to use mouse in combobox Pin
monrobot1328-Jun-03 10:37
monrobot1328-Jun-03 10:37 
GeneralRe: unable to use mouse in combobox Pin
James T. Johnson29-Jun-03 1:08
James T. Johnson29-Jun-03 1:08 
GeneralRe: unable to use mouse in combobox Pin
monrobot1329-Jun-03 7:17
monrobot1329-Jun-03 7:17 
GeneralTreeview Help Pin
.gonad28-Jun-03 5:16
.gonad28-Jun-03 5:16 
GeneralRe: Treeview Help Pin
Roland Bär30-Jun-03 2:02
Roland Bär30-Jun-03 2:02 
GeneralCursor Position inside a text box Pin
Balachandar Ganesan28-Jun-03 0:26
Balachandar Ganesan28-Jun-03 0:26 
GeneralRe: Cursor Position inside a text box Pin
leppie28-Jun-03 4:34
leppie28-Jun-03 4:34 
GeneralDateTime Constructor performance Pin
Josh Martin27-Jun-03 14:33
Josh Martin27-Jun-03 14:33 
Hi all!

I'm working on a .NET data provider, and the DateTime Constructor is killing me. The data is coming from a byte array (which is an ODBC TimeStamp structure) and I'm tearing it apart and stuffing it into a DateTime.

In my test application, it takes me 10+ seconds to return 10,000 records from the DB. If I comment out the DateTime constructor line and just return null for the DateTime, it only takes 2 seconds to return the 10,000 records.

So far, I've tried every constructor to see if there was any different performance. The only constructor that had any difference was the DateTime(long) (ie, number of ticks since 1/1/1), but how do you calculate how many ticks a given date is?.

All of the properties are read-only, so I can't create a temp DateTime and just set my values (or can I?). I'm really kind of at a loss here...

Anyone have any ideas?

Josh

Find a penny, pick it up, and all day long you'll have a back-ache...
GeneralRe: DateTime Constructor performance Pin
Jim Stewart28-Jun-03 5:20
Jim Stewart28-Jun-03 5:20 
GeneralRe: DateTime Constructor performance Pin
Josh Martin1-Jul-03 13:23
Josh Martin1-Jul-03 13:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.