"आकृति:Strfind short" के अवतरणसभमे अन्तर

added new parameter {lenstr} for search 3x faster, stopping at length of strings. Set default search up to 15 long but allows lenstr=99.
set to check lenstr > 55 to skip searching columns 56-99.
पङ्क्त्ति ६७:
#ifeq:{{padleft:|{{#expr: {{{3}}}+53}}|-{{{1}}} }}^|{{padleft:|53|-{{{1}}} }}{{{2}}}^|53+0*}}{{
#ifeq:{{padleft:|{{#expr: {{{3}}}+54}}|-{{{1}}} }}^|{{padleft:|54|-{{{1}}} }}{{{2}}}^|54+0*}}{{
#ifeq:{{padleft:|{{#expr: {{{3}}}+55}}|-{{{1}}} }}^|{{padleft:|55|-{{{1}}} }}{{{2}}}^|55+0*}}{{ }}<!--
---------------------- Check to skip lengths > 55
-->{{#ifexpr: {{{lenstr|15}}} > 55 |{{
#ifeq:{{padleft:|{{#expr: {{{3}}}+56}}|-{{{1}}} }}^|{{padleft:|56|-{{{1}}} }}{{{2}}}^|56+0*}}{{
#ifeq:{{padleft:|{{#expr: {{{3}}}+57}}|-{{{1}}} }}^|{{padleft:|57|-{{{1}}} }}{{{2}}}^|57+0*}}{{
Line ११२ ⟶ ११४:
#ifeq:{{padleft:|{{#expr: {{{3}}}+98}}|-{{{1}}} }}^|{{padleft:|98|-{{{1}}} }}{{{2}}}^|98+0*}}{{
#ifeq:{{padleft:|{{#expr: {{{3}}}+99}}|-{{{1}}} }}^|{{padleft:|99|-{{{1}}} }}{{{2}}}^|99+0*
}}}}0}}<noinclude><!--endif lenstr > 4555, with "0" & endexpr
--------------------------------------------------------------
--NOTES
Line १३५ ⟶ १३७:
-- lenstr > 25 will search the 16% of strings over 25 long,
-- lenstr > 35 will search the 4% of strings over 35,
-- lenstr > 45 will search 1% of strings over 45 long.,
-- lenstr > 55 will search rare strings over 55 long.
-- The exact check of length is {{{lenstr}}}+{{{3}}}-1 > n
-- to also stop if the search string is too long to match.
Line १४६ ⟶ १४९:
--29Jan11 New {lenstr} for search 3x faster, stopping at length.
--29Jan11 Set default search up to 15 long but allow lenstr=99.
--31Jan11 Check lenstr > 55 to skip searching columns 56-99.
--
-->
प्राप्ति स्थल "https://mai.wikipedia.org/wiki/आकृति:Strfind_short"