User talk:Smasongarrison

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

WELCOME TO MY TALK PAGE!
Questions, information, good faith warnings? Say it here!· My archive



Useful Wiki Things[edit]

Random page in category Inline cleanup templates


Typo optimization[edit]

Thanks for all your good work speeding up the typo searching. I know each one takes microseconds but we do run them a lot of times and it all adds up to a substantial saving. Certes (talk) 18:45, 13 November 2018 (UTC)

Sure thing! It's been a great way for me to improve my regex skills. Smasongarrison (talk) 03:24, 14 November 2018 (UTC)
I've learnt from it too, and I had a quick look to see if any of your techniques could be used elsewhere. I only spotted Illustrate and Headquarters, but they might suggest other patterns to look for. I'll leave any actual edits to you, as you obviously have the tools in place to check that the change is actually beneficial. Certes (talk) 00:01, 17 November 2018 (UTC)
I use https://regex101.com/ or https://regexr.com/ to compare the original to the change. I'm working on getting a more formal benchmark in R. Smasongarrison (talk) 00:44, 17 November 2018 (UTC)
Do you have tools for finding suboptimal expressions? For example, I found Illustrate by running perl -ne 'print if s/(\(|\(\?\:|\|)(\w+)(\w|\[\w+\])(\|\w+)*\|\2([|)])/$1$2$3?$4$5/' on the page source to change str|st to str?. (My regex missed a second optimization that you found, and is inefficient, but it only runs once and takes less than a second.) Certes (talk) 10:14, 17 November 2018 (UTC)

Broken typos[edit]

After your most recent batch of fixes, "Reconnaissance" is broken. AWB says "Nested quantifier +". I don't know what that piece of the RE is trying to say, or indeed if any of your fixes directly addressed that line, but can you take a look? David Brooks (talk) 16:44, 14 November 2018 (UTC) ETA: presumably this edit? Still, thanks for all the optimization work! David Brooks (talk) 17:37, 14 November 2018 (UTC)

oops. I'll fix that. Usually, I run awb after each bout of optimizations. (I had to proctor a test). Smasongarrison (talk) 21:35, 14 November 2018 (UTC)
Thanks. I understand when real life intrudes (which is why I delayed sending this: wife's birthday :-) David Brooks (talk) 01:34, 15 November 2018 (UTC)

Disambiguation link notification for November 16[edit]

An automated process has detected that when you recently edited Todd Heatherton, you added a link pointing to the disambiguation page Perfectionism (check to confirm | fix with Dab solver).

(Opt-out instructions.) --DPL bot (talk) 09:18, 16 November 2018 (UTC)