Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ·8 | 1 | ·8ba353af68c5175d193477bfe68c3a3f·505260·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·····49 | 2 | -rw-r--r--···0········0········0·····4908·2024-03-31·09:12:06.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···500160·2024-03-31·09:12:06.000000·data.tar.xz | 3 | -rw-r--r--···0········0········0···500160·2024-03-31·09:12:06.000000·data.tar.xz |
Offset 175, 25 lines modified | Offset 175, 25 lines modified | ||
175 | -rw-r--r--···0·root·········(0)·root·········(0)·····6030·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/plot_directive/user/plotting-2.pdf.gz | 175 | -rw-r--r--···0·root·········(0)·root·········(0)·····6030·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/plot_directive/user/plotting-2.pdf.gz |
176 | -rw-r--r--···0·root·········(0)·root·········(0)····16263·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/plot_directive/user/plotting-2.png | 176 | -rw-r--r--···0·root·········(0)·root·········(0)····16263·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/plot_directive/user/plotting-2.png |
177 | -rw-r--r--···0·root·········(0)·root·········(0)····48180·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/plot_directive/user/plotting-3.hires.png | 177 | -rw-r--r--···0·root·········(0)·root·········(0)····48180·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/plot_directive/user/plotting-3.hires.png |
178 | -rw-r--r--···0·root·········(0)·root·········(0)·····5077·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/plot_directive/user/plotting-3.pdf.gz | 178 | -rw-r--r--···0·root·········(0)·root·········(0)·····5077·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/plot_directive/user/plotting-3.pdf.gz |
179 | -rw-r--r--···0·root·········(0)·root·········(0)····15505·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/plot_directive/user/plotting-3.png | 179 | -rw-r--r--···0·root·········(0)·root·········(0)····15505·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/plot_directive/user/plotting-3.png |
180 | -rw-r--r--···0·root·········(0)·root·········(0)····17309·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/py-modindex.html | 180 | -rw-r--r--···0·root·········(0)·root·········(0)····17309·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/py-modindex.html |
181 | -rw-r--r--···0·root·········(0)·root·········(0)····13094·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/search.html | 181 | -rw-r--r--···0·root·········(0)·root·········(0)····13094·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/search.html |
182 | -rw-r--r--···0·root·········(0)·root·········(0)···1164 | 182 | -rw-r--r--···0·root·········(0)·root·········(0)···116437·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/searchindex.js |
183 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/ | 183 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/ |
184 | -rw-r--r--···0·root·········(0)·root·········(0)····17348·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/angular_frequency.html | 184 | -rw-r--r--···0·root·········(0)·root·········(0)····17348·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/angular_frequency.html |
185 | -rw-r--r--···0·root·········(0)·root·········(0)····46404·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/contexts.html | 185 | -rw-r--r--···0·root·········(0)·root·········(0)····46404·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/contexts.html |
186 | -rw-r--r--···0·root·········(0)·root·········(0)····28533·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/defining-quantities.html | 186 | -rw-r--r--···0·root·········(0)·root·········(0)····28533·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/defining-quantities.html |
187 | -rw-r--r--···0·root·········(0)·root·········(0)····36786·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/formatting.html | 187 | -rw-r--r--···0·root·········(0)·root·········(0)····36786·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/formatting.html |
188 | -rw-r--r--···0·root·········(0)·root·········(0)····14453·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/index.html | 188 | -rw-r--r--···0·root·········(0)·root·········(0)····14453·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/index.html |
189 | -rw-r--r--···0·root·········(0)·root·········(0)····26276·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/log_units.html | 189 | -rw-r--r--···0·root·········(0)·root·········(0)····26276·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/log_units.html |
190 | -rw-r--r--···0·root·········(0)·root·········(0)····32339·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/nonmult.html | 190 | -rw-r--r--···0·root·········(0)·root·········(0)····32339·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/nonmult.html |
191 | -rw-r--r--···0·root·········(0)·root·········(0)···103478·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/numpy.html | 191 | -rw-r--r--···0·root·········(0)·root·········(0)···103478·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/numpy.html |
192 | -rw-r--r--···0·root·········(0)·root·········(0)·····82 | 192 | -rw-r--r--···0·root·········(0)·root·········(0)·····8226·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/numpy.ipynb.gz |
193 | -rw-r--r--···0·root·········(0)·root·········(0)····39783·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/plotting-1.hires.png | 193 | -rw-r--r--···0·root·········(0)·root·········(0)····39783·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/plotting-1.hires.png |
194 | -rw-r--r--···0·root·········(0)·root·········(0)·····5519·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/plotting-1.pdf.gz | 194 | -rw-r--r--···0·root·········(0)·root·········(0)·····5519·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/plotting-1.pdf.gz |
195 | -rw-r--r--···0·root·········(0)·root·········(0)····12843·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/plotting-1.png | 195 | -rw-r--r--···0·root·········(0)·root·········(0)····12843·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/plotting-1.png |
196 | -rw-r--r--···0·root·········(0)·root·········(0)······339·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/plotting-1.py | 196 | -rw-r--r--···0·root·········(0)·root·········(0)······339·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/plotting-1.py |
197 | -rw-r--r--···0·root·········(0)·root·········(0)····50942·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/plotting-2.hires.png | 197 | -rw-r--r--···0·root·········(0)·root·········(0)····50942·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/plotting-2.hires.png |
198 | -rw-r--r--···0·root·········(0)·root·········(0)·····6030·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/plotting-2.pdf.gz | 198 | -rw-r--r--···0·root·········(0)·root·········(0)·····6030·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/plotting-2.pdf.gz |
199 | -rw-r--r--···0·root·········(0)·root·········(0)····16263·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/plotting-2.png | 199 | -rw-r--r--···0·root·········(0)·root·········(0)····16263·2024-03-31·09:12:06.000000·./usr/share/doc/python-pint-doc/html/user/plotting-2.png |
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"> | 481 | <span·class="go">227·us·+-·1.33·us·per·loop·(mean·+-·std.·dev.·of·7·runs,·1,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"> | 483 | <span·class="go">27.5·us·+-·219·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 | 124 | 227·us·+-·1.33·us·per·loop·(mean·+-·std.·dev.·of·7·runs,·1,000·loops·each) | |
125 | In·[20]:·%timeit·g(a,·b) | 125 | In·[20]:·%timeit·g(a,·b) |
126 | 126 | 27.5·us·+-·219·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 | ········"657":·5, | ||
593 | ········"37":·5, | ||
594 | ········" | 592 | ········"227":·[5,·13], |
593 | ········"33":·[5,·24,·26], | ||
594 | ········"27":·[5,·15,·26], | ||
595 | ········" | 595 | ········"219":·5, |
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":·"202 | 30 | ····················"iopub.execute_input":·"2025-05-19T08:45:58.612661Z", |
31 | ····················"iopub.status.busy":·"202 | 31 | ····················"iopub.status.busy":·"2025-05-19T08:45:58.612038Z", |
32 | ····················"iopub.status.idle":·"202 | 32 | ····················"iopub.status.idle":·"2025-05-19T08:45:58.901841Z", |
33 | ····················"shell.execute_reply":·"202 | 33 | ····················"shell.execute_reply":·"2025-05-19T08:45:58.901179Z" |
34 | ················}, | 34 | ················}, |
35 | ················"pycharm":·{ | 35 | ················"pycharm":·{ |
36 | ····················"name":·"#%%\n" | 36 | ····················"name":·"#%%\n" |
37 | ················} | 37 | ················} |
38 | ············}, | 38 | ············}, |
39 | ············"outputs":·[ | 39 | ············"outputs":·[ |
40 | ················{ | 40 | ················{ |