logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
SQLGetDataText question

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
caloup



Joined: 29 Sep 2006
Posts: 59
Location: albi (france)

PostPosted: Thu Nov 23, 2006 8:38    Post subject: SQLGetDataText question Reply with quote

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
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Thu Nov 23, 2006 14:55    Post subject: Reply with quote

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 Wink.

But of course, you can do the same for both functions, if you like.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
caloup



Joined: 29 Sep 2006
Posts: 59
Location: albi (france)

PostPosted: Thu Nov 23, 2006 19:54    Post subject: thank Reply with quote

you're right ! Smile

Thanks !
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group