Click here to Skip to main content
15,895,817 members
Home / Discussions / C#
   

C#

 
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 
GeneralMouse Auto Click Pin
Pedromdrp27-Jun-03 12:15
Pedromdrp27-Jun-03 12:15 
GeneralRe: Mouse Auto Click Pin
Paresh Gheewala27-Jun-03 13:10
Paresh Gheewala27-Jun-03 13:10 
GeneralRe: Mouse Auto Click Pin
Pedromdrp28-Jun-03 3:41
Pedromdrp28-Jun-03 3:41 
GeneralWebBrowser control: stuck with interframe security Pin
GriffonRL27-Jun-03 12:03
GriffonRL27-Jun-03 12:03 
GeneralOpen Web Browser from Winform Pin
Chris#27-Jun-03 11:03
Chris#27-Jun-03 11:03 
GeneralRe: Open Web Browser from Winform Pin
Mazdak27-Jun-03 11:13
Mazdak27-Jun-03 11:13 
GeneralRe: Open Web Browser from Winform Pin
dynamic27-Jun-03 12:45
dynamic27-Jun-03 12:45 
GeneralRe: Open Web Browser from Winform Pin
Paresh Gheewala27-Jun-03 13:11
Paresh Gheewala27-Jun-03 13:11 
GeneralRe: Open Web Browser from Winform Pin
Arjan Einbu28-Jun-03 11:32
Arjan Einbu28-Jun-03 11:32 
QuestionC DLL -> C# DLL possible? Pin
S O S27-Jun-03 9:57
S O S27-Jun-03 9:57 
AnswerRe: C DLL -> C# DLL possible? Pin
Nathan Blomquist27-Jun-03 17:32
Nathan Blomquist27-Jun-03 17:32 
GeneralRe: C DLL -> C# DLL possible? Pin
S O S28-Jun-03 8:43
S O S28-Jun-03 8:43 
AnswerRe: C DLL -> C# DLL possible? Pin
Nick Parker28-Jun-03 6:10
protectorNick Parker28-Jun-03 6:10 
GeneralRe: C DLL -> C# DLL possible? Pin
S O S28-Jun-03 8:43
S O S28-Jun-03 8:43 
GeneralRe: C DLL -> C# DLL possible? Pin
Nick Parker28-Jun-03 10:39
protectorNick Parker28-Jun-03 10:39 

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.