Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | · | 1 | ·b9380f142cd101a6c571dd1fdefa99c3·505820·doc·optional·python-pint-doc_0.23-1_all.deb |
2 | ·68e2897391c71955ba213a8ae87bfe55·231628·python·optional·python3-pint_0.23-1_all.deb | 2 | ·68e2897391c71955ba213a8ae87bfe55·231628·python·optional·python3-pint_0.23-1_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-03-31·09:12:06.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-03-31·09:12:06.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····4904·2024-03-31·09:12:06.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0·····4904·2024-03-31·09:12:06.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···500 | 3 | -rw-r--r--···0········0········0···500724·2024-03-31·09:12:06.000000·data.tar.xz |
Offset 139, 15 lines modified | Offset 139, 15 lines modified | ||
139 | -rw-r--r--···0·root·········(0)·root·········(0)·····1094·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/_static/webpack-macros.html | 139 | -rw-r--r--···0·root·········(0)·root·········(0)·····1094·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/_static/webpack-macros.html |
140 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/ | 140 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/ |
141 | -rw-r--r--···0·root·········(0)·root·········(0)····21423·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/currencies.html | 141 | -rw-r--r--···0·root·········(0)·root·········(0)····21423·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/currencies.html |
142 | -rw-r--r--···0·root·········(0)·root·········(0)····22703·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/custom-registry-class.html | 142 | -rw-r--r--···0·root·········(0)·root·········(0)····22703·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/custom-registry-class.html |
143 | -rw-r--r--···0·root·········(0)·root·········(0)····28623·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/defining.html | 143 | -rw-r--r--···0·root·········(0)·root·········(0)····28623·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/defining.html |
144 | -rw-r--r--···0·root·········(0)·root·········(0)····14375·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/index.html | 144 | -rw-r--r--···0·root·········(0)·root·········(0)····14375·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/index.html |
145 | -rw-r--r--···0·root·········(0)·root·········(0)····19934·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/measurement.html | 145 | -rw-r--r--···0·root·········(0)·root·········(0)····19934·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/measurement.html |
146 | -rw-r--r--···0·root·········(0)·root·········(0)····2793 | 146 | -rw-r--r--···0·root·········(0)·root·········(0)····27936·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/performance.html |
147 | -rw-r--r--···0·root·········(0)·root·········(0)····25286·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/pitheorem.html | 147 | -rw-r--r--···0·root·········(0)·root·········(0)····25286·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/pitheorem.html |
148 | -rw-r--r--···0·root·········(0)·root·········(0)····24348·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/serialization.html | 148 | -rw-r--r--···0·root·········(0)·root·········(0)····24348·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/serialization.html |
149 | -rw-r--r--···0·root·········(0)·root·········(0)····40545·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/wrapping.html | 149 | -rw-r--r--···0·root·········(0)·root·········(0)····40545·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/advanced/wrapping.html |
150 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/api/ | 150 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/api/ |
151 | -rw-r--r--···0·root·········(0)·root·········(0)···177664·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/api/base.html | 151 | -rw-r--r--···0·root·········(0)·root·········(0)···177664·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/api/base.html |
152 | -rw-r--r--···0·root·········(0)·root·········(0)···261253·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/api/facets.html | 152 | -rw-r--r--···0·root·········(0)·root·········(0)···261253·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/api/facets.html |
153 | -rw-r--r--···0·root·········(0)·root·········(0)····14282·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/api/index.html | 153 | -rw-r--r--···0·root·········(0)·root·········(0)····14282·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/api/index.html |
Offset 477, 18 lines modified | Offset 477, 18 lines modified | ||
477 | <span·class="gp">···....:·</span> | 477 | <span·class="gp">···....:·</span> |
478 | <span·class="gp">In·[17]:·</span><span·class="n">a</span>·<span·class="o">=</span>·<span·class="mi">1</span>·<span·class="o">*</span>·<span·class="n">ureg</span><span·class="o">.</span><span·class="n">meter</span> | 478 | <span·class="gp">In·[17]:·</span><span·class="n">a</span>·<span·class="o">=</span>·<span·class="mi">1</span>·<span·class="o">*</span>·<span·class="n">ureg</span><span·class="o">.</span><span·class="n">meter</span> |
479 | <span·class="gp">In·[18]:·</span><span·class="n">b</span>·<span·class="o">=</span>·<span·class="mi">1</span>·<span·class="o">*</span>·<span·class="n">ureg</span><span·class="o">.</span><span·class="n">centimeter</span> | 479 | <span·class="gp">In·[18]:·</span><span·class="n">b</span>·<span·class="o">=</span>·<span·class="mi">1</span>·<span·class="o">*</span>·<span·class="n">ureg</span><span·class="o">.</span><span·class="n">centimeter</span> |
480 | <span·class="gp">In·[19]:·</span><span·class="o">%</span><span·class="k">timeit</span>·f(a,·b) | 480 | <span·class="gp">In·[19]:·</span><span·class="o">%</span><span·class="k">timeit</span>·f(a,·b) |
481 | <span·class="go">15 | 481 | <span·class="go">153·us·+-·622·ns·per·loop·(mean·+-·std.·dev.·of·7·runs,·10,000·loops·each)</span> |
482 | <span·class="gp">In·[20]:·</span><span·class="o">%</span><span·class="k">timeit</span>·g(a,·b) | 482 | <span·class="gp">In·[20]:·</span><span·class="o">%</span><span·class="k">timeit</span>·g(a,·b) |
483 | <span·class="go">22. | 483 | <span·class="go">22.4·us·+-·27.9·ns·per·loop·(mean·+-·std.·dev.·of·7·runs,·10,000·loops·each)</span> |
484 | </pre></div> | 484 | </pre></div> |
485 | </div> | 485 | </div> |
486 | </section> | 486 | </section> |
487 | <section·id="speed-up-registry-instantiation"> | 487 | <section·id="speed-up-registry-instantiation"> |
488 | <h2>Speed·up·registry·instantiation<a·class="headerlink"·href="#speed-up-registry-instantiation"·title="Link·to·this·heading">¶</a></h2> | 488 | <h2>Speed·up·registry·instantiation<a·class="headerlink"·href="#speed-up-registry-instantiation"·title="Link·to·this·heading">¶</a></h2> |
489 | <p>When·the·registry·is·instantiated,·the·definition·file·is·parsed,·loaded·and | 489 | <p>When·the·registry·is·instantiated,·the·definition·file·is·parsed,·loaded·and |
490 | some·pre-calculations·are·made·to·speed-up·certain·common·operations.·This | 490 | some·pre-calculations·are·made·to·speed-up·certain·common·operations.·This |
Offset 120, 18 lines modified | Offset 120, 18 lines modified | ||
120 | ···....: | 120 | ···....: |
121 | In·[17]:·a·=·1·*·ureg.meter | 121 | In·[17]:·a·=·1·*·ureg.meter |
122 | In·[18]:·b·=·1·*·ureg.centimeter | 122 | In·[18]:·b·=·1·*·ureg.centimeter |
123 | In·[19]:·%timeit·f(a,·b) | 123 | In·[19]:·%timeit·f(a,·b) |
124 | 15 | 124 | 153·us·+-·622·ns·per·loop·(mean·+-·std.·dev.·of·7·runs,·10,000·loops·each) |
125 | In·[20]:·%timeit·g(a,·b) | 125 | In·[20]:·%timeit·g(a,·b) |
126 | 22. | 126 | 22.4·us·+-·27.9·ns·per·loop·(mean·+-·std.·dev.·of·7·runs,·10,000·loops·each) |
127 | *\x8**\x8**\x8**\x8**\x8*·S\x8Sp\x8pe\x8ee\x8ed\x8d·u\x8up\x8p·r\x8re\x8eg\x8gi\x8is\x8st\x8tr\x8ry\x8y·i\x8in\x8ns\x8st\x8ta\x8an\x8nt\x8ti\x8ia\x8at\x8ti\x8io\x8on\x8n_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* | 127 | *\x8**\x8**\x8**\x8**\x8*·S\x8Sp\x8pe\x8ee\x8ed\x8d·u\x8up\x8p·r\x8re\x8eg\x8gi\x8is\x8st\x8tr\x8ry\x8y·i\x8in\x8ns\x8st\x8ta\x8an\x8nt\x8ti\x8ia\x8at\x8ti\x8io\x8on\x8n_\x8?\x8¶·*\x8**\x8**\x8**\x8**\x8* |
128 | When·the·registry·is·instantiated,·the·definition·file·is·parsed,·loaded·and | 128 | When·the·registry·is·instantiated,·the·definition·file·is·parsed,·loaded·and |
129 | some·pre-calculations·are·made·to·speed-up·certain·common·operations.·This | 129 | some·pre-calculations·are·made·to·speed-up·certain·common·operations.·This |
130 | process·can·be·time·consuming·for·a·large·definition·file·such·as·the·default | 130 | process·can·be·time·consuming·for·a·large·definition·file·such·as·the·default |
131 | one·(and·very·comprehensive)·provided·with·pint.·This·can·have·a·significant | 131 | one·(and·very·comprehensive)·provided·with·pint.·This·can·have·a·significant |
132 | impact·in·command·line·applications·that·create·and·drop·registries. | 132 | impact·in·command·line·applications·that·create·and·drop·registries. |
133 | Since·version·0.19,·part·of·this·process·can·be·cached·resulting·in·a·5x·to·20x | 133 | Since·version·0.19,·part·of·this·process·can·be·cached·resulting·in·a·5x·to·20x |
Offset 585, 18 lines modified | Offset 585, 18 lines modified | ||
585 | ········"log":·[5,·13,·14,·30], | 585 | ········"log":·[5,·13,·14,·30], |
586 | ········"16":·[5,·26,·30], | 586 | ········"16":·[5,·26,·30], |
587 | ········"none":·[5,·8,·9,·10,·12,·13,·26,·32], | 587 | ········"none":·[5,·8,·9,·10,·12,·13,·26,·32], |
588 | ········"17":·[5,·26,·30], | 588 | ········"17":·[5,·26,·30], |
589 | ········"18":·[5,·26,·30], | 589 | ········"18":·[5,·26,·30], |
590 | ········"b":·[5,·8,·9,·24], | 590 | ········"b":·[5,·8,·9,·24], |
591 | ········"19":·[5,·24,·26], | 591 | ········"19":·[5,·24,·26], |
592 | ········"15 | 592 | ········"153":·5, |
593 | ········" | 593 | ········"622":·5, |
594 | ········"22":·[5,·8,·26,·29], | 594 | ········"22":·[5,·8,·26,·29], |
595 | ········" | 595 | ········"27":·[5,·15,·26], |
596 | ········"definit":·[5,·7,·9,·10,·13,·19,·21,·23,·29,·32], | 596 | ········"definit":·[5,·7,·9,·10,·13,·19,·21,·23,·29,·32], |
597 | ········"file":·[5,·7,·9,·10,·13,·14,·19,·29,·30,·32], | 597 | ········"file":·[5,·7,·9,·10,·13,·14,·19,·29,·30,·32], |
598 | ········"pre":·[5,·8,·13,·14,·24], | 598 | ········"pre":·[5,·8,·13,·14,·24], |
599 | ········"made":·5, | 599 | ········"made":·5, |
600 | ········"common":·[5,·7,·13,·14,·23,·27,·30], | 600 | ········"common":·[5,·7,·13,·14,·23,·27,·30], |
601 | ········"process":·[5,·7,·19,·22], | 601 | ········"process":·[5,·7,·19,·22], |
602 | ········"consum":·5, | 602 | ········"consum":·5, |
Offset 23, 18 lines modified | Offset 23, 18 lines modified | ||
23 | ············] | 23 | ············] |
24 | ········}, | 24 | ········}, |
25 | ········{ | 25 | ········{ |
26 | ············"cell_type":·"code", | 26 | ············"cell_type":·"code", |
27 | ············"execution_count":·1, | 27 | ············"execution_count":·1, |
28 | ············"metadata":·{ | 28 | ············"metadata":·{ |
29 | ················"execution":·{ | 29 | ················"execution":·{ |
30 | ····················"iopub.execute_input":·"2024-04-16T08: | 30 | ····················"iopub.execute_input":·"2024-04-16T08:34:44.803882Z", |
31 | ····················"iopub.status.busy":·"2024-04-16T08: | 31 | ····················"iopub.status.busy":·"2024-04-16T08:34:44.803312Z", |
32 | ····················"iopub.status.idle":·"2024-04-16T08: | 32 | ····················"iopub.status.idle":·"2024-04-16T08:34:45.155592Z", |
33 | ····················"shell.execute_reply":·"2024-04-16T08: | 33 | ····················"shell.execute_reply":·"2024-04-16T08:34:45.154496Z" |
34 | ················}, | 34 | ················}, |
35 | ················"pycharm":·{ | 35 | ················"pycharm":·{ |
36 | ····················"name":·"#%%\n" | 36 | ····················"name":·"#%%\n" |
37 | ················} | 37 | ················} |
38 | ············}, | 38 | ············}, |
39 | ············"outputs":·[ | 39 | ············"outputs":·[ |
40 | ················{ | 40 | ················{ |