Hi, @cmeriaux, @peterjones, @alan-kilborn, @arkadiuszmichalski and All,
So, I"m going on testing some examples of text, dealing with replacements, bookmarks and replacement modifiers ! Note that I did not consider the Admin case, rather identical !
First, I used the @sasumner’s file data8279.txt ( 300,000 lines ) and I performed two types of text :
A global replacement of (?-s)^.*NotepadPP.*\R with Nothing, with the Wrap around option ticked ( First table, below )
A mark operation of the string NotepadPP, with the Bookmark line and Wrap around option ticked, but not the Match case one, followed with a Search > Bookmark > Remove Bookmarked Lines operation ( Second table, below )
203,236 occurrences were deleted or were marked then deleted !
•===============•=============•==========•=================•
| Archi- | Version | User Mode |
| | |----------•-----------------|
| tecture | Notepad++ | Time | Ratio x32/x64 |
•===============•=============•==========•=================•
| Win XP x32 | 7.9.2 | 65.0 s | -/- |
•===============•=============•==========•=================•
| Win 10 x32 | 7.9.2 | 47.6 s | |
•---------------•-------------•----------• 1.27 |
| Win 10 x64 | 7.9.2 | 37.5 s | |
•===============•=============•==========•=================•
| Win 10 x32 | 7.9.5 | 47.4 s | |
•---------------•-------------•----------• 1.27 |
| Win 10 x64 | 7.9.5 | 37.4 s | |
•===============•=============•==========•=================•
| Win 10 x32 | 8.0 | 86.2 s | |
•---------------•-------------•----------• 1.22 |
| Win 10 x64 | 8.0 | 70.4 s | |
•===============•=============•==========•=================•
| Win 10 x32 | 8.1.5 | 47.6 s | |
•---------------•-------------•----------• 1.27 |
| Win 10 x64 | 8.1.5 | 37.5 s | |
•===============•=============•==========•=================•
| Win 10 x32 | 8.1.9.2 | 47.5 s | |
•---------------•-------------•----------• 1.28 |
| Win 10 x64 | 8.1.9.2 | 37.2 s | |
•===============•=============•==========•=================•
•===============•=============•====================================•
| Archi- | Version | User Mode |
| | |------------------•-----------------|
| tecture | Notepad++ | Time | Ratio x32/x64 |
•===============•=============•==================•=================•
| Win XP x32 | 7.9.2 | 10.0 s + 64.2 s | -/- |
•===============•=============•==================•=================•
| Win 10 x32 | 7.9.2 | 4.9 s + 49.1 s | |
•---------------•-------------•------------------• 1.36 |
| Win 10 x64 | 7.9.2 | 2.1 s + 37.5 s | |
•===============•=============•==================•=================•
| Win 10 x32 | 7.9.5 | 4.8 s + 49.1 s | |
•---------------•-------------•------------------• 1.35 |
| Win 10 x64 | 7.9.5 | 2.3 s + 37.6 s | |
•===============•=============•==================•=================•
| Win 10 x32 | 8.0 | 20.0 s + 49.1 s | |
•---------------•-------------•------------------• 1.31 |
| Win 10 x64 | 8.0 | 14.8 s + 37.8 s | |
•===============•=============•==================•=================•
| Win 10 x32 | 8.1.5 | 4.8 s + 49.3 s | |
•---------------•-------------•------------------• 1.35 |
| Win 10 x64 | 8.1.5 | 2.3 s + 37.7 s | |
•===============•=============•==================•=================•
| Win 10 x32 | 8.1.9.2 | 4.8 s + 49.2 s | |
•---------------•-------------•------------------• 1.37 |
| Win 10 x64 | 8.1.9.2 | 2.1 s + 37.4 s | |
•===============•=============•==================•=================•
In the second table, I decomposed the total time in two parts :
Time to bookmark the lines
Time to delete these lines
I summarized the two values before calculating the ratio x32/x64
Interpretation of the results :
If xe except the special case of the v8.0 version, the results are very similar, for the two tables :
In the first case, the more complicated regex (?-s)^.*NotepadPP.*\R decrease a bit the ratio between the x32 and x64 versions
In the second case, both the mark operation and the deletion of lines have an impact, but the ratio between the x32 and x64 versions is a bit better
Note that, regarding the v8.0 version, in the second table, the performance regression comes from the bad results of the mark operation only !
I performed a last test, using the same Search and Replace regexes than in my initial issue :
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9636
So the regex S/R :
SEARCH \w
REPLACE \U$0
I, then, created a file containing 1,000 lines ( every odd ones ) with the French text :
C’est là, près de la forêt, dans un gîte, où régnait un grand capharnaüm, que l’aïeul ôta sa flûte et son bâton de son canoë.
And I added 1,000 English lines ( every even ones ) :
Here is a example of text, containing the complete French set of accentuated characters, traditionally used.
After replacement, 184,000 occurrences have been modified :
•===============•=============•==========•=================•
| Archi- | Version | User Mode |
| | |----------•-----------------|
| tecture | Notepad++ | Time | Ratio x32/x64 |
•===============•=============•==========•=================•
| Win XP x32 | 7.9.2 | 18.7 s | -/- |
•===============•=============•==========•=================•
| Win 10 x32 | 7.9.2 | 10.5 s | |
•---------------•-------------•----------• 2.56 |
| Win 10 x64 | 7.9.2 | 4.1 s | |
•===============•=============•==========•=================•
| Win 10 x32 | 7.9.5 | 10.3 s | |
•---------------•-------------•----------• 2.51 |
| Win 10 x64 | 7.9.5 | 4.1 s | |
•===============•=============•==========•=================•
| Win 10 x32 | 8.0 | 38.5 s | |
•---------------•-------------•----------• 1.41 |
| Win 10 x64 | 8.0 | 27.4 s | |
•===============•=============•==========•=================•
| Win 10 x32 | 8.1.5 | 10.4 s | |
•---------------•-------------•----------• 2.54 |
| Win 10 x64 | 8.1.5 | 4.1 s | |
•===============•=============•==========•=================•
| Win 10 x32 | 8.1.9.2 | 10.4 s | |
•---------------•-------------•----------• 2.54 |
| Win 10 x64 | 8.1.9.2 | 4.1 s | |
•===============•=============•==========•=================•
Interpretation of the results :
Again, if we except the special case of the v8.0 version :
The results, whatever the version, are quite similar, for each case ( x32 and x64 )
The ratio x32/x64 is similar to the one of my previous post ( ~ 2.52 ) !
Best Regards,
guy038