Click here to Skip to main content
15,910,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSlider background Pin
Øyvind Bratland18-May-00 2:46
sussØyvind Bratland18-May-00 2:46 
GeneralRe: Slider background Pin
Buck18-May-00 4:01
Buck18-May-00 4:01 
QuestionArp question? Pin
Marcellus Felisbret18-May-00 2:42
sussMarcellus Felisbret18-May-00 2:42 
AnswerRe: Arp question? Pin
Alfadhly19-May-00 9:09
sussAlfadhly19-May-00 9:09 
GeneralCOM obj Installation Pin
schler18-May-00 2:10
schler18-May-00 2:10 
GeneralRe: COM obj Installation Pin
Kim Gräsman22-May-00 23:47
Kim Gräsman22-May-00 23:47 
GeneralSearching/replacing text in large text files Pin
Stanik18-May-00 1:38
Stanik18-May-00 1:38 
GeneralRe: Searching/replacing text in large text files Pin
Dmitriy18-May-00 9:07
Dmitriy18-May-00 9:07 
Look. I've worked with large files - it was 0.5 GB - 1.5 GB.
It was realy large and search and replace took hours with DOS-made program.
To impove it I compiled another program. One of the ideas was - first allocate enough memory. You probably can allocate all 4 MB in memory. Second, the program will work much faster if it will work not with bytes, but with DWORD.
So, I packed chars in DWORDs by 4 where it was possible.
Third, check only first DWORD, if it is equal, compare all.
Make a loop with offset by DWORD. After you passed all file, increment it, and so three times to make full search.
This algorithm a litle bit more complicated, but I've got speed of like it was just read and write - something like 10-15 minutes.

Hope this will help.
GeneralEditing in CListCtrl Pin
El Koe18-May-00 0:57
El Koe18-May-00 0:57 
GeneralRe: Editing in CListCtrl Pin
Jonathan18-May-00 1:34
Jonathan18-May-00 1:34 
GeneralProblem with PreTranslateMessage!!! Pin
sot17-May-00 22:02
sot17-May-00 22:02 
GeneralRe: Problem with PreTranslateMessage!!! Pin
Dmitriy18-May-00 8:58
Dmitriy18-May-00 8:58 
GeneralE-TEAM Pin
Shankar Chandra Bose17-May-00 14:06
Shankar Chandra Bose17-May-00 14:06 
GeneralRe: E-TEAM Pin
WIDI17-May-00 21:02
WIDI17-May-00 21:02 
GeneralRe: E-TEAM Pin
Frank Deo18-May-00 1:47
Frank Deo18-May-00 1:47 
GeneralNested dialogs Pin
John17-May-00 10:20
John17-May-00 10:20 
Generalcustom controls and WM_NOTIFY Pin
Nick Hodapp17-May-00 5:41
sitebuilderNick Hodapp17-May-00 5:41 
GeneralRe: custom controls and WM_NOTIFY Pin
Chris Maunder17-May-00 22:10
cofounderChris Maunder17-May-00 22:10 
GeneralBrowser extensions Pin
mahesh17-May-00 4:37
mahesh17-May-00 4:37 
GeneralRe: Browser extensions Pin
Nick Hodapp17-May-00 5:45
sitebuilderNick Hodapp17-May-00 5:45 
GeneralRe: Browser extensions Pin
Frank Deo17-May-00 5:49
Frank Deo17-May-00 5:49 
GeneralRe: Browser extensions Pin
mahesh17-May-00 5:52
mahesh17-May-00 5:52 
GeneralRe: Browser extensions Pin
Frank Deo17-May-00 8:05
Frank Deo17-May-00 8:05 
GeneralRe: Browser extensions Pin
Dmitriy18-May-00 8:56
Dmitriy18-May-00 8:56 
GeneralRe: Browser extensions Pin
Erik Thompson20-May-00 20:44
sitebuilderErik Thompson20-May-00 20:44 

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.