[03:06:25] an abuse filter on jawiki takes .23 secs on average, with hundreds of forbidden phrases (characteristic to a particular LTA). [03:06:47] it uses a huge "contains_any" [03:07:02] is there a way to do it more efficiently (while keeping maintainability)? [04:43:44] whym: I think contains_any is slow, try using rlike instead? [04:50:09] legoktm: yeah, but one-line regexp with thousands of characters is not ideal in terms of maintainability [04:52:08] I tried converting a smaller set of phrases into a regex, and it did improve speed. [04:55:03] well, that's what enwiki does [04:55:18] "(first|second|third|etc)" [05:28:46] legoktm: I've come up with the solution to have a multi-line regexp for readability, and wrap it with rmwhitespace. [05:29:27] nice, is it running faster than contains_any? [06:03:54] legoktm: yep, it's like regexp takes constant time against the number of phrases (assuming each is short), while contains_any takes linear. [09:56:00] hm search timeout on meta [17:44:36] What is the parameter I add to the URL to download JavaScript in debug mode? [17:45:15] I'm trying to figure out how Mediawiki does that whole "your edit has been saved" thing... [17:47:10] postedit? hm am I not noticing it or not seeing it anymore *thinking* [17:48:07] debug=true [17:48:19] And yes, it's PostEdit, which is now in core [17:49:09] Magog_the_Ogre, see resources/src/mediawiki.action/mediawiki.action.view.postEdit.js [17:50:40] Krenair, I don't mean how does it do it in JavaScript, I meant how do I access it for use with my tool? :) [17:51:00] You want to trigger it? [17:51:19] VE does that somewhere. Let me find it, sec [17:51:29] correct, Krenair [17:51:50] mw.hook( 'postEdit' ).fire( { 'message': ve.msg( 'postedit-confirmation-' + currentUri.query.venotify, mw.user ) } ); [17:51:57] I found mw.notify, which the watchlist notification uses, but I don't like how subtle it is [18:58:02] now why do I keep getting unstyled pages, hm let's restart browser [19:07:59] Nemo_bis: looking into the -ops chan, I can see some problems, maybe related? [19:09:21] I doubt [19:09:34] not related, no [19:09:40] not aware of bits issues atm