View previous topic :: View next topic |
Author |
Message |
caloup
Joined: 29 Sep 2006 Posts: 59 Location: albi (france)
|
Posted: Thu Nov 23, 2006 8:38 Post subject: SQLGetDataText question |
|
|
Hello pap's
Thank you for your work !
I have just a question for now. You're making an optimization for SQLGetData :
Quote: |
if (iCol == 1)
{
SetLocalString(oModule, "NWNX!SQL!GETDATA!0", smallColSpacer);
return GetLocalString(oModule, "NWNX!SQL!GETDATA!0");
}
|
Why don't do the same for SQLGetDataText ? |
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Thu Nov 23, 2006 14:55 Post subject: |
|
|
Code simplicity.
The same could be done for the Text variant, but the benefit would be very very small, since I expect that nobody will load hundreds of huge columns into NWN at once, and then notice a difference of 5 milliseconds in total .
But of course, you can do the same for both functions, if you like. _________________ Papillon |
|
Back to top |
|
|
caloup
Joined: 29 Sep 2006 Posts: 59 Location: albi (france)
|
Posted: Thu Nov 23, 2006 19:54 Post subject: thank |
|
|
you're right !
Thanks ! |
|
Back to top |
|
|
|