Skip to content

Conversation

@doterik
Copy link

@doterik doterik commented Jul 27, 2024

Hello,

I read your article “Fast Search and Replace” on CodeProject and found it very interesting. Although memory-mapping wasn’t entirely unfamiliar to me, I haven’t used it on a larger scale before.

I believe I found a bug; specifically, if the replaced text is shorter, it isn’t handled correctly. Another thing that bothered me significantly was that all files were updated, meaning they received a new date even if no changes had occurred. I can’t emphasize enough how much I disliked this behavior.

Now, I’ve extracted common parts from the Forms and Console applications into a separate library, updated the Sdk, and .NET version. Otherwise, the code should remain fairly intact except for formatting, where we diverge quite a bit (I have a wide screen).

I’m submitting this as a pull request (PR), not with the intention of you accepting it, but more as a basis for alternative approaches. If you have time, feel free to review it and provide suggestions. I’ll leave this PR open for about a week before removing it.

About Alphaleonis.Win32.Filesystem alphaleonis/AlphaFS#529 (comment)
I refrain from commenting on how I feel about suggesting old outdated packages.

Likewise, regarding Newtonsoft.Json instead of System.Text, perhaps more of a taste.

Thank you for sharing this library, I would be pleased if you could compile and run my repo at least once.

Regards,

@doterik doterik force-pushed the shared branch 2 times, most recently from dfc8b4b to 81755ad Compare July 27, 2024 01:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant