User talk:SlimVirgin: Difference between revisions
SlimVirgin (talk | contribs) |
→Why Citation/core is slow: replying |
||
Line 164: | Line 164: | ||
::::::Thank you, it's very helpful. Could you say what you mean by this? "A simpler template that displayed ten parameters would not do nearly as much work as one that makes complex decisions based on ten parameters." So there could be citation templates that display the same number of parameters, but which work differently and wouldn't cause these problems? I know people have suggested alternatives, but I'm never sure why they're not taken up. [[User:SlimVirgin|SlimVirgin]] <small><sup>[[User_talk:SlimVirgin|(talk)]]</sup></small> 20:30, 29 August 2012 (UTC) |
::::::Thank you, it's very helpful. Could you say what you mean by this? "A simpler template that displayed ten parameters would not do nearly as much work as one that makes complex decisions based on ten parameters." So there could be citation templates that display the same number of parameters, but which work differently and wouldn't cause these problems? I know people have suggested alternatives, but I'm never sure why they're not taken up. [[User:SlimVirgin|SlimVirgin]] <small><sup>[[User_talk:SlimVirgin|(talk)]]</sup></small> 20:30, 29 August 2012 (UTC) |
||
:::::::Yes there could be templates that have the same number of parameters, which work differently with less problems. This is because the sheer number of parameters is not the only contributor to increased processing time. The number of ''if-then-else'' decisions made based on each parameter is a contributor to complexity, so if a template had only rudimentary intelligence regarding which parameters to hide and show, it would run faster. The "smarter" a many-parameter template gets, the greater the need becomes for optimizations like the one Gimmetoo describes. In general it isn't an issue, but it seems like with the citation templates it has become one. There are definitely ways that the citation templates can be made faster, but my first concern is that a change to the template interface would require checking usages of the template across the entire project to make sure they're not being broken by template optimizations. In the end it would be faster to create a whole new set of citation templates in parallel, rather than to try to change these ones with their millions of transclusions. Then we could systematically replace the old set with new, faster ones. When replacing millions of template calls is the easy way, you know it's going to be a lot of work. One of us should probably phone [[Skynet (Terminator)|Skynet]] and make an order for more bots. [[User:BigNate37|BigNate37]]<sub>[[User talk:BigNate37|(T)]]</sub> 16:29, 30 August 2012 (UTC) |
|||
Sorry to follow wikid77 here, but here are some more specific examples. In citation/core, there is a parameter called "Surname1". We don't use citation/core directly, however, but through other templates like cite web. When cite web "invokes" citation/core, it uses the following logic to determine what to use for Surname1 based on the parameters used to invoke "cite web": if "last=" is used, use it, otherwise if "surname=" is used, use it, otherwise if "last1" is used, use it, otherwise if "surname1" is used, use it, otherwise if "author1" is used, use it, otherwise if "author" is used, use it, otherwise if "authors" is used, use it, otherwise use Surname1=<blank>. If someone writes cite web with authors=Smith, Jones, then every other possible "alias" needs to be "checked" before checking authors= for Smith, Jones. On the other hand, every template that uses last=Smith doesn't need to "check" the other parameters. Even a fairly common alias like "author" requires checking 5 other parameter names first. Next, cite web includes a number of "identifier" options, including DOI, ISBN, ISSN, JSTOR, ARXIV, LCCN, OCLC, SL, RFC, SSRN, and many others. Every one of these involves *some* logic (usually checking lowercase then uppercase, such as "isbn", then "ISBN" as parameter options for ISBN), and every one gets passed on to citation/core, but most are rarely used (and some don't even make sense with cite web). Wikid77 above suggests a gateway option, like idkey, so that these parameters would only be checked if idkey=yes to begin with. This would add one bit of logic to every "invocation" that had an id of some sort, but for every invocation that had "idkey=no", the code could skip all the logic for DOI, ISBN, etc. (There are other ways to optimize that logic, too.). All this logic is processed either with a save, or with a preview. Simple reading of the latest version uses a "cached" version that has already been processed, so it generally goes faster, often much faster. [[User:Gimmetoo|Gimmetoo]] ([[User talk:Gimmetoo|talk]]) 02:09, 28 August 2012 (UTC) |
Sorry to follow wikid77 here, but here are some more specific examples. In citation/core, there is a parameter called "Surname1". We don't use citation/core directly, however, but through other templates like cite web. When cite web "invokes" citation/core, it uses the following logic to determine what to use for Surname1 based on the parameters used to invoke "cite web": if "last=" is used, use it, otherwise if "surname=" is used, use it, otherwise if "last1" is used, use it, otherwise if "surname1" is used, use it, otherwise if "author1" is used, use it, otherwise if "author" is used, use it, otherwise if "authors" is used, use it, otherwise use Surname1=<blank>. If someone writes cite web with authors=Smith, Jones, then every other possible "alias" needs to be "checked" before checking authors= for Smith, Jones. On the other hand, every template that uses last=Smith doesn't need to "check" the other parameters. Even a fairly common alias like "author" requires checking 5 other parameter names first. Next, cite web includes a number of "identifier" options, including DOI, ISBN, ISSN, JSTOR, ARXIV, LCCN, OCLC, SL, RFC, SSRN, and many others. Every one of these involves *some* logic (usually checking lowercase then uppercase, such as "isbn", then "ISBN" as parameter options for ISBN), and every one gets passed on to citation/core, but most are rarely used (and some don't even make sense with cite web). Wikid77 above suggests a gateway option, like idkey, so that these parameters would only be checked if idkey=yes to begin with. This would add one bit of logic to every "invocation" that had an id of some sort, but for every invocation that had "idkey=no", the code could skip all the logic for DOI, ISBN, etc. (There are other ways to optimize that logic, too.). All this logic is processed either with a save, or with a preview. Simple reading of the latest version uses a "cached" version that has already been processed, so it generally goes faster, often much faster. [[User:Gimmetoo|Gimmetoo]] ([[User talk:Gimmetoo|talk]]) 02:09, 28 August 2012 (UTC) |
Revision as of 16:29, 30 August 2012
Selena GomezHey I'd like to updating your image in Selena Gomez page with the latest picture of her in 2012. Thank you :) — Preceding unsigned comment added by TiraSadiyah (talk • contribs) 08:16, 22 August 2012 (UTC) Vote Pi in the next AfD
Resource exchangeHello.Your request was fulfilled.You can find a link to the article/s you requested in the relevant section at WP:RX.Please indicate when you've downloaded successfully and add a resolved tag to your request.Thank you.--Shrike (talk)/WP:RX 05:16, 1 August 2012 (UTC) YRCHey SV. Please have a talk with YRC; his temper is flaring up again, and he's heading for trouble. — Coren (talk) 03:19, 3 August 2012 (UTC)
That RFC isn't going to proceed well, I predict. Uncle G (talk) 11:35, 6 August 2012 (UTC) The Tea Leaf - Issue FiveHi! Welcome to the fifth edition of The Tea Leaf, the official newsletter of the Teahouse!
As always, thanks for supporting the Teahouse project! Stop by and visit us today! You are receiving The Tea Leaf after expressing interest or participating in the Teahouse! To remove yourself from receiving future newsletters, please remove your username here. Sarah (talk) 08:38, 4 August 2012 (UTC) Marshalsea and OutlawryHello Slim, response to you on here- Kind regards, J2013 — Preceding unsigned comment added by Jennifer2013 (talk • contribs) 14:44, 4 August 2012 (UTC) License tagging for File:Alfred Wetzler.JPGThanks for uploading File:Alfred Wetzler.JPG. You don't seem to have indicated the license status of the image. Wikipedia uses a set of image copyright tags to indicate this information. To add a tag to the image, select the appropriate tag from this list, click on this link, then click "Edit this page" and add the tag to the image's description. If there doesn't seem to be a suitable tag, the image is probably not appropriate for use on Wikipedia. For help in choosing the correct tag, or for any other questions, leave a message on Wikipedia:Media copyright questions. Thank you for your cooperation. --ImageTaggingBot (talk) 00:05, 6 August 2012 (UTC) credoI saw your post on the Credo page .. does it go to the first person on the list? Or the first person to ask? :-) — Ched : ? 23:38, 7 August 2012 (UTC)
Compromise as Cite_quickI am working on another fast-cite compromise, as Template:Cite_quick (12x faster or 175/second), which supports only the major parameters (as with pop-culture cites) and lists all parameters not supported. As you might have noticed, the TfD for Template:Fcite was closed as, basically, "Don't delete don't use" which is nonsense akin to an AfD as "Keep don't read" or "Keep but text visibility none". See TfD:
Unfortunately, I was out of town when closing admin User:Plastikspork closed the TfD as "but not deployed in articles" along with closing dozens of other TfD entries. I have been on wikibreak, and Plastikspork has been on wikibreak, so the TfD nonsense has locked the templates for 4 weeks. Meanwhile, the "spirit of the consensus" was to improve the {Cite} family with {Cite_web}, etc. So, the next compromise is {{Cite_quick}} for minimal cites in pop-culture articles. However, this approach has the benefit of exceeding the 6x-faster Fcite templates as 12x faster, due to omitting most parameters, but limited to short, simple cites. Long-term, the {Fcite_journal} is intended as 5x-faster for most medical articles, supporting numerous journal codes (arxiv, ASIN, bibcode, DOI, OSTI, OCLC, PMC, PMID, SSRN, etc.) and interactions with Cite tools. Anyway, {Cite_quick} is intended to allow progress this week. Among the debates, many people did not realize major articles preview so slowly, or that cites could be formatted 6x-12x faster, as edit-preview of 5-10 seconds rather than 20-40 seconds. People have been replying like, "Is that some other definition of 'second'?" Hence, it is not just gaining consensus to use different templates, but to even understand how hundreds of major articles (pageviews > 5,000/day), and their prior revisions, have been reformatting so slowly, for over 3 years. -Wikid77 (talk) 06:28, 8 August 2012 (UTC)
New projectHey Sarah! I'd love your input on the project I am in the process of starting. If you have time to take a look, especially at the questions on the talk page, that'd be fabulous. Thank you! SarahStierch (talk) 21:38, 8 August 2012 (UTC)
Your edit at Gynandromorphophilia.Hi, SV; I hope you are well. Could you expand on your deletion of the material? It is extremely well sourced, most of the text is exactly from the WP bio about her (as wikilinked), and the topic is highly germane to the stigma associated with the topic of the page. What's the BLP issue?— James Cantor (talk) 21:47, 8 August 2012 (UTC)
Quick blp questionI wanted to ask you a question in regard to the Pussy Riot article. I've marked the talkpage of the article with {{blp}} because the article has a sub-section entitled "The defendants" which gives personal details about several members of the group. I don't have much blp experience, as I usually deal with long-dead writers and poets. Is marking the talkpage enough, or is something more needed in regard to the article page itself? Thanks for your time. INeverCry 19:20, 11 August 2012 (UTC)
I hope you don't mind another question. There's a section on the Pussy Riot talk page entitled "Gang Bang, offending the Patriarch and blasphemy", in which there doesn't seem to be any reliable ref for what's being said. Isn't this a blp violation itself, and shouldn't it be removed? INeverCry 17:54, 12 August 2012 (UTC) TfD for new Cite_web/smartI am contacting you, per wp:CANVAS, after contacting mostly negative editors, as a user previously supportive of quick, fast citation templates, in considering the latest TfD discussion. In this case, the template {Cite_web/smart} is finally the big upgrade to entirely replace {Cite_web} with a faster version that cleverly checks the parameters to only invoke {Citation/core} for any rare parameters, else quickly formats a cite. See TfD of 11 August 2012: This notice is only an FYI, as announcing the discussion under way. Feel free to oppose the template, support the template, ignore the discussion, or even delete this message. The TfD just started, so there should be, at least, 7 days to consider the issues. Thanks. -Wikid77 (talk) 21:07, 11 August 2012 (UTC) Rfc on Youreallycan/Off2riorobYou may be interested in commenting on this this RfC. A prior decision you made to unblock this editor has been mentioned.--The Devil's Advocate (talk) 16:46, 13 August 2012 (UTC) Favour?Hi SV. Do you have the necessary permissions to erase this, or at least the edit summary? I'm going to bed now; anything you could do would be appreciated. --Anthonyhcole (talk) 22:22, 14 August 2012 (UTC)
resource requestHi, I've uploaded an article you requested at the resource exchange. You can find a link to the article on that page. Best, GabrielF (talk) 05:09, 16 August 2012 (UTC)
Disambiguation link notification for August 19Hi. When you recently edited Kastner train, you added a link pointing to the disambiguation page Bergen-Belsen (check to confirm | fix with Dab solver). Such links are almost always unintended, since a disambiguation page is merely a list of "Did you mean..." article titles. Read the FAQ • Join us at the DPL WikiProject. It's OK to remove this message. Also, to stop receiving these messages, follow these opt-out instructions. Thanks, DPL bot (talk) 04:44, 19 August 2012 (UTC) Orphaned non-free media (File:JoelBrand.jpg)Thanks for uploading File:JoelBrand.jpg. The media description page currently specifies that it is non-free and may only be used on Wikipedia under a claim of fair use. However, it is currently orphaned, meaning that it is not used in any articles on Wikipedia. If the media was previously in an article, please go to the article and see why it was removed. You may add it back if you think that that will be useful. However, please note that media for which a replacement could be created are not acceptable for use on Wikipedia (see our policy for non-free media). If you have uploaded other unlicensed media, please check whether they're used in any articles or not. You can find a list of 'file' pages you have edited by clicking on the "my contributions" link (it is located at the very top of any Wikipedia page when you are logged in), and then selecting "File" from the dropdown box. Note that all non-free media not used in any articles will be deleted after seven days, as described on criteria for speedy deletion. Thank you. Hazard-Bot (talk) 04:01, 20 August 2012 (UTC) circular referenceYou reverted a needed change. WP:PRIMARY and WP:BLPPRIMARY do not agree with each other and also refer to each other for further information. I can understand not liking my particular attempt at reconciling them but they do need to be reconciled. TMLutas (talk)
RFPP for Carl HewittHello, There's been a request for unprotection on Carl Hewitt. While you were not the last admin to protect the article, that admin has suggested that you provide input. I briefly looked in the log and it looks like it is a combination of a BLP issue, possibly ArbCom (mentioned in the protection log), inappropriate moves, etc....very messy. But, it has been full protected for over a year, which probably merits some sort of review as to whether the protection is still warranted. Would you mind taking a look at the page and considering an unprotection? ⇒SWATJester Son of the Defender 01:50, 25 August 2012 (UTC)
Why Citation/core is slowThere are 2 major reasons why {Citation/core} runs so slowly: too many top-level options, and too many alias parameters.
Another faster gateway option could be "names=no" to skip checking for the 23 major name aliases (author, author1, last1, last, surname1, surname, first1, first, given1, given, authors, coauthors, coauthor, others, editor, editor1, editor-last, editor1-last, editor1-surname, editor-surname, editor-first, editor1-first, or editors). Note here, a template can be huge, and handle numerous parameters, if they are grouped in efficient groups only triggered by top-level gateway options which could quickly bypass checking for numerous unused options, and their many alias names. However, currently, when all options are constantly checked, as top-level options, then {Citation/core} runs very slowly, methodically seeing if any rare option has been used, everytime. I hope that explains the current slow processing. -Wikid77 (talk) 06:41, 27 August 2012 (UTC)
Sorry to follow wikid77 here, but here are some more specific examples. In citation/core, there is a parameter called "Surname1". We don't use citation/core directly, however, but through other templates like cite web. When cite web "invokes" citation/core, it uses the following logic to determine what to use for Surname1 based on the parameters used to invoke "cite web": if "last=" is used, use it, otherwise if "surname=" is used, use it, otherwise if "last1" is used, use it, otherwise if "surname1" is used, use it, otherwise if "author1" is used, use it, otherwise if "author" is used, use it, otherwise if "authors" is used, use it, otherwise use Surname1=<blank>. If someone writes cite web with authors=Smith, Jones, then every other possible "alias" needs to be "checked" before checking authors= for Smith, Jones. On the other hand, every template that uses last=Smith doesn't need to "check" the other parameters. Even a fairly common alias like "author" requires checking 5 other parameter names first. Next, cite web includes a number of "identifier" options, including DOI, ISBN, ISSN, JSTOR, ARXIV, LCCN, OCLC, SL, RFC, SSRN, and many others. Every one of these involves *some* logic (usually checking lowercase then uppercase, such as "isbn", then "ISBN" as parameter options for ISBN), and every one gets passed on to citation/core, but most are rarely used (and some don't even make sense with cite web). Wikid77 above suggests a gateway option, like idkey, so that these parameters would only be checked if idkey=yes to begin with. This would add one bit of logic to every "invocation" that had an id of some sort, but for every invocation that had "idkey=no", the code could skip all the logic for DOI, ISBN, etc. (There are other ways to optimize that logic, too.). All this logic is processed either with a save, or with a preview. Simple reading of the latest version uses a "cached" version that has already been processed, so it generally goes faster, often much faster. Gimmetoo (talk) 02:09, 28 August 2012 (UTC)
Seeking your wisdom regarding talk templates(By the way, you may want to increase the bottom margin on User talk:SlimVirgin/Editnotice by 5 or 10 points. It's being clipped by the subject/headline field when in "section=new" mode. —BigNate37(T))
Hi SV, I see that you were involved in the early stages of the BLP template, and you seem to have a lot of credibility and experience. Could you please spare a few moments to look at User:BigNate37/TM/Extant organization content notice, and perhaps share some wisdom with us on that template's talk page? A bit of a history lesson would be welcome guidance, especially in relation to what we're trying to do with the extant organization template. As much as I haven't seen any opposition to the organization template yet, I can't shake the feeling that editors are going to come out in opposition as soon as it sees some use. Thank you. BigNate37(T) 21:56, 27 August 2012 (UTC)
|