Click here to Skip to main content
15,901,505 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Western style applied proverb Pin
Nelek9-May-24 8:39
protectorNelek9-May-24 8:39 
GeneralRe: Western style applied proverb Pin
BernardIE53179-May-24 16:28
BernardIE53179-May-24 16:28 
GeneralRe: Western style applied proverb Pin
jochance9-May-24 10:21
jochance9-May-24 10:21 
GeneralRe: Western style applied proverb Pin
GKP19929-May-24 19:22
professionalGKP19929-May-24 19:22 
GeneralRe: Western style applied proverb Pin
Salvatore Terress10-May-24 12:52
Salvatore Terress10-May-24 12:52 
GeneralRe: Western style applied proverb Pin
Vivi Chellappa12-May-24 18:06
professionalVivi Chellappa12-May-24 18:06 
GeneralMetasurface wavefront control for high-performance user-natural augmented reality waveguide glasses Pin
BernardIE53179-May-24 0:44
BernardIE53179-May-24 0:44 
GeneralNew article: Fast Search and Replace in Large Number of Files: A Practical Guide PinPopular
Brian C Hart8-May-24 18:27
professionalBrian C Hart8-May-24 18:27 
See here: Fast Search and Replace in Large Number of Files: A Practical Guide[^]

Hello all,

My name is Dr. Brian Hart, and I am a PhD astrophysicist and one of the original users of The Code Project from back in the year 2000. I've written many articles in C++ and C# programming.

I just wanted to share a link to an article I just posted, today, on The Code Project. I hope you will stop by and take a look.

It's about using memory-mapped files in C# to do a search and replace a large number of files fast. I implemented the algorithm both as a (really bare-bones) console application and a more graphical/user-friendly Windows Forms tool.

It came out of work that I was doing on this .sln file that contains almost 1,000 projects in Visual Studio, and I was pushing my existing Find In Files / Replace In Files tools to the limit. I needed to write my fast algorithm as part of a file- and project-renaming tool I was writing, partly to manage the refactoring of so much code.

The code included with the article compiles (after doing a nuget restore in the Solution directory). It should be informative and a great example of processing a huge number of files really fast.

The impetus of the article was trying to imitate the speed with which Notepad++ processes files with its Find in Files and Replace in Files operations.

I also include code to create a progress dialog in WinForms and report the operation's progress to the user while keeping the GUI responsive. I hope it helps someone with their programming work!

Regards,


Brian Hart
GeneralRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide Pin
Ștefan-Mihai MOGA8-May-24 21:28
professionalȘtefan-Mihai MOGA8-May-24 21:28 
RantRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide PinPopular
Richard Deeming8-May-24 21:39
mveRichard Deeming8-May-24 21:39 
GeneralRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide Pin
OriginalGriff8-May-24 21:50
mveOriginalGriff8-May-24 21:50 
GeneralRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide Pin
Richard MacCutchan8-May-24 22:51
mveRichard MacCutchan8-May-24 22:51 
GeneralRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide Pin
Pete O'Hanlon9-May-24 0:53
mvePete O'Hanlon9-May-24 0:53 
PraiseRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide Pin
Richard Deeming9-May-24 1:10
mveRichard Deeming9-May-24 1:10 
GeneralRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide Pin
Brian C Hart9-May-24 5:48
professionalBrian C Hart9-May-24 5:48 
GeneralRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide Pin
jochance9-May-24 10:33
jochance9-May-24 10:33 
GeneralRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide Pin
0x01AA9-May-24 12:33
mve0x01AA9-May-24 12:33 
GeneralRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide Pin
Richard Deeming9-May-24 20:56
mveRichard Deeming9-May-24 20:56 
GeneralRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide Pin
Richard Deeming9-May-24 21:00
mveRichard Deeming9-May-24 21:00 
GeneralRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide Pin
dandy729-May-24 6:32
dandy729-May-24 6:32 
GeneralRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide Pin
Brian C Hart9-May-24 7:30
professionalBrian C Hart9-May-24 7:30 
GeneralRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide Pin
Jörgen Andersson9-May-24 20:49
professionalJörgen Andersson9-May-24 20:49 
GeneralRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide Pin
dandy7210-May-24 3:17
dandy7210-May-24 3:17 
GeneralRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide Pin
jochance9-May-24 10:24
jochance9-May-24 10:24 
GeneralRe: New article: Fast Search and Replace in Large Number of Files: A Practical Guide Pin
Brian C Hart9-May-24 12:29
professionalBrian C Hart9-May-24 12:29 

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.