Click here to Skip to main content
16,014,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to search a large text file quicker Pin
dazinith7-Mar-03 10:10
dazinith7-Mar-03 10:10 
GeneralRe: How to search a large text file quicker Pin
Neville Franks7-Mar-03 10:22
Neville Franks7-Mar-03 10:22 
AnswerRe: How to search a large text file quicker Pin
Scott H. Settlemier7-Mar-03 10:14
Scott H. Settlemier7-Mar-03 10:14 
GeneralRe: How to search a large text file quicker Pin
dazinith7-Mar-03 10:23
dazinith7-Mar-03 10:23 
GeneralRe: How to search a large text file quicker Pin
Scott H. Settlemier7-Mar-03 11:21
Scott H. Settlemier7-Mar-03 11:21 
AnswerRe: How to search a large text file quicker Pin
Tim Smith7-Mar-03 10:25
Tim Smith7-Mar-03 10:25 
GeneralRe: How to search a large text file quicker Pin
dazinith7-Mar-03 11:00
dazinith7-Mar-03 11:00 
GeneralRe: How to search a large text file quicker Pin
Tim Smith7-Mar-03 11:44
Tim Smith7-Mar-03 11:44 
The "szBuffer [0] == '.'" is just checking to see if the first character is a '.'.

The szBuffer [9] = 0; is splitting the string into two parts. The first part starts at szBuffer [0] and is 9 characters long. The second part starts at szBuffer [10] and contains the rest of the string. This allows you to copy the first part of the string into your destination.

The szBuffer [11+36] = 0; is doing the same thing. But now we have three strings.

What this does is remove the need to allocate a new buffer to hold the string, copy that string into the new buffer, and then extra elements from the string piece by piece. By directly operating on the original string, we avoid a fair amount of overhead.

Tim Smith

I'm going to patent thought. I have yet to see any prior art.
AnswerRe: How to search a large text file quicker Pin
Ted Ferenc8-Mar-03 2:02
Ted Ferenc8-Mar-03 2:02 
GeneralDShow-implementing CBaseControlWindow Pin
Jakub Misek7-Mar-03 9:36
Jakub Misek7-Mar-03 9:36 
QuestionCompliers and File IO buffer efficiency? Pin
phyzics7-Mar-03 9:12
phyzics7-Mar-03 9:12 
AnswerRe: Compliers and File IO buffer efficiency? Pin
Tim Smith7-Mar-03 9:22
Tim Smith7-Mar-03 9:22 
GeneralHelp With Threads...PLEASE! Pin
dantan987-Mar-03 7:57
dantan987-Mar-03 7:57 
GeneralRe: Help With Threads...PLEASE! Pin
dantan987-Mar-03 7:59
dantan987-Mar-03 7:59 
GeneralRe: Help With Threads...PLEASE! Pin
AlexO7-Mar-03 8:16
AlexO7-Mar-03 8:16 
GeneralRe: Help With Threads...PLEASE! Pin
dantan987-Mar-03 8:34
dantan987-Mar-03 8:34 
GeneralRe: Help With Threads...PLEASE! Pin
AlexO7-Mar-03 9:28
AlexO7-Mar-03 9:28 
GeneralRe: Help With Threads...PLEASE! Pin
Scott H. Settlemier7-Mar-03 9:59
Scott H. Settlemier7-Mar-03 9:59 
GeneralRe: Help With Threads...PLEASE! Pin
Neville Franks7-Mar-03 10:26
Neville Franks7-Mar-03 10:26 
GeneralRe: Help With Threads...PLEASE! Pin
Scott H. Settlemier7-Mar-03 11:27
Scott H. Settlemier7-Mar-03 11:27 
GeneralRe: Help With Threads...PLEASE! Pin
AlexO7-Mar-03 10:45
AlexO7-Mar-03 10:45 
GeneralOpen a Text File on SDI (Listview) Project Pin
Member 2693577-Mar-03 7:07
Member 2693577-Mar-03 7:07 
GeneralRe: Open a Text File on SDI (Listview) Project Pin
RobJones7-Mar-03 7:19
RobJones7-Mar-03 7:19 
GeneralRe: Open a Text File on SDI (Listview) Project Pin
7-Mar-03 9:55
suss7-Mar-03 9:55 
GeneralRe: Open a Text File on SDI (Listview) Project Pin
RobJones7-Mar-03 10:23
RobJones7-Mar-03 10: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.