Click here to Skip to main content
16,004,806 members
Home / Discussions / C#
   

C#

 
GeneralRe: making a text box more efficient Pin
AspDotNetDev8-Jun-10 13:19
protectorAspDotNetDev8-Jun-10 13:19 
GeneralRe: making a text box more efficient Pin
Luc Pattyn8-Jun-10 13:26
sitebuilderLuc Pattyn8-Jun-10 13:26 
GeneralRe: making a text box more efficient Pin
AspDotNetDev8-Jun-10 13:59
protectorAspDotNetDev8-Jun-10 13:59 
GeneralRe: making a text box more efficient Pin
Luc Pattyn8-Jun-10 14:06
sitebuilderLuc Pattyn8-Jun-10 14:06 
GeneralRe: making a text box more efficient Pin
AspDotNetDev8-Jun-10 14:16
protectorAspDotNetDev8-Jun-10 14:16 
GeneralRe: making a text box more efficient Pin
Luc Pattyn8-Jun-10 14:28
sitebuilderLuc Pattyn8-Jun-10 14:28 
GeneralRe: making a text box more efficient Pin
Dave Kreskowiak8-Jun-10 12:24
mveDave Kreskowiak8-Jun-10 12:24 
GeneralRe: making a text box more efficient Pin
AspDotNetDev8-Jun-10 12:57
protectorAspDotNetDev8-Jun-10 12:57 
Dave Kreskowiak wrote:
The actual value is managed by Win32, not .NET, by sending window messages like EM_SETTEXT, EM_REPLACESEL, and the like.


My guess is that Win32 uses a structure similar to a StringBuilder to ensure append operations are O(1) rather than O(n). For example, they might use mutable strings that double in size each time the capacity is exceeded.

Dave Kreskowiak wrote:
I didn't say there was any.


You said there was nothing funky going on, but you didn't show the whole picture. There are calls to other functions that probably manage things more intelligently than you seem to think append operations are handled.

GeneralRe: making a text box more efficient Pin
Dave Kreskowiak8-Jun-10 17:21
mveDave Kreskowiak8-Jun-10 17:21 
GeneralRe: making a text box more efficient Pin
AspDotNetDev8-Jun-10 17:34
protectorAspDotNetDev8-Jun-10 17:34 
GeneralRe: making a text box more efficient Pin
Dave Kreskowiak9-Jun-10 2:03
mveDave Kreskowiak9-Jun-10 2:03 
GeneralRe: making a text box more efficient Pin
AspDotNetDev9-Jun-10 5:39
protectorAspDotNetDev9-Jun-10 5:39 
GeneralRe: making a text box more efficient Pin
LookSharp8-Jun-10 17:24
LookSharp8-Jun-10 17:24 
GeneralRe: making a text box more efficient Pin
Dave Kreskowiak9-Jun-10 2:01
mveDave Kreskowiak9-Jun-10 2:01 
GeneralRe: making a text box more efficient Pin
LookSharp9-Jun-10 3:19
LookSharp9-Jun-10 3:19 
AnswerRe: making a text box more efficient Pin
Luc Pattyn8-Jun-10 6:57
sitebuilderLuc Pattyn8-Jun-10 6:57 
GeneralRe: making a text box more efficient Pin
AspDotNetDev8-Jun-10 9:22
protectorAspDotNetDev8-Jun-10 9:22 
GeneralRe: making a text box more efficient Pin
Luc Pattyn8-Jun-10 9:30
sitebuilderLuc Pattyn8-Jun-10 9:30 
AnswerRe: making a text box more efficient Pin
AspDotNetDev8-Jun-10 9:18
protectorAspDotNetDev8-Jun-10 9:18 
Questiongridview pagination Pin
FEMDEV8-Jun-10 5:35
FEMDEV8-Jun-10 5:35 
AnswerRe: gridview pagination Pin
Dave Kreskowiak8-Jun-10 6:18
mveDave Kreskowiak8-Jun-10 6:18 
Questionhow to convert whole .hex file to bin file Pin
bhavin chheda8-Jun-10 5:22
bhavin chheda8-Jun-10 5:22 
AnswerRe: how to convert whole .hex file to bin file Pin
loyal ginger8-Jun-10 5:36
loyal ginger8-Jun-10 5:36 
AnswerRe: how to convert whole .hex file to bin file Pin
OriginalGriff8-Jun-10 6:29
mveOriginalGriff8-Jun-10 6:29 
AnswerRe: how to convert whole .hex file to bin file Pin
harold aptroot8-Jun-10 6:31
harold aptroot8-Jun-10 6:31 

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.