Skip to content

Instantly share code, notes, and snippets.

@Infernio
Infernio / profile_startup_env_1.txt
Created January 27, 2021 18:05
Baseline at dev
bash.py 436 _main: 2573981 function calls (2568510 primitive calls) in 2.340 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 2.409 2.409 bash\basher\__init__.py:4215(Init)
1 0.000 0.000 1.288 1.288 bash\basher\__init__.py:4258(InitData)
1 0.000 0.000 0.698 0.698 bash\basher\__init__.py:3840(__init__)
1 0.000 0.000 0.696 0.696 bash\bosh\__init__.py:2097(refresh)
1 0.001 0.001 0.648 0.648 bash\basher\__init__.py:3605(__init__)
@Infernio
Infernio / profile_startup_rejected.txt
Last active January 27, 2021 17:54
After LZ4-compressing our data files
bash.py 435 _main: 2681389 function calls (2675918 primitive calls) in 1.759 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 1.804 1.804 bash\basher\__init__.py:4213(Init)
1 0.000 0.000 0.990 0.990 bash\basher\__init__.py:4256(InitData)
1 0.000 0.000 0.569 0.569 bash\bosh\__init__.py:2093(refresh)
1 0.000 0.000 0.495 0.495 bash\basher\__init__.py:3838(__init__)
1 0.001 0.001 0.468 0.468 bash\basher\__init__.py:3603(__init__)
@Infernio
Infernio / profile_bain_rejected.txt
Last active January 27, 2021 17:54
After LZ4-compressing our data files
__init__.py 3156 ShowPanel: 3645468 function calls (3643831 primitive calls) in 2.404 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 2.404 2.404 bash\balt.py:869(_conversation_wrapper)
2/1 0.000 0.000 2.404 2.404 bash\bosh\bain.py:1612(_projects_walk_cache_wrapper)
1 0.000 0.000 2.403 2.403 bash\basher\__init__.py:3161(_refresh_installers_if_needed)
1 0.006 0.006 1.955 1.955 bash\bosh\bain.py:1684(irefresh)
1 0.000 0.000 0.937 0.937 bash\bosh\bain.py:1712(__load)
@Infernio
Infernio / profile_bain_2.txt
Created January 17, 2021 13:38
At HEAD of nightly
__init__.py 3156 ShowPanel: 3645566 function calls (3643929 primitive calls) in 2.409 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 2.409 2.409 bash\balt.py:869(_conversation_wrapper)
2/1 0.000 0.000 2.409 2.409 bash\bosh\bain.py:1612(_projects_walk_cache_wrapper)
1 0.000 0.000 2.409 2.409 bash\basher\__init__.py:3161(_refresh_installers_if_needed)
1 0.007 0.007 1.973 1.973 bash\bosh\bain.py:1684(irefresh)
1 0.000 0.000 0.952 0.952 bash\bosh\bain.py:1712(__load)
__init__.py 3149 ShowPanel: 3629368 function calls (3627731 primitive calls) in 2.432 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 2.432 2.432 bash\balt.py:869(_conversation_wrapper)
2/1 0.000 0.000 2.432 2.432 bash\bosh\bain.py:1622(_projects_walk_cache_wrapper)
1 0.000 0.000 2.432 2.432 bash\basher\__init__.py:3154(_refresh_installers_if_needed)
1 0.006 0.006 2.001 2.001 bash\bosh\bain.py:1694(irefresh)
1 0.000 0.000 0.984 0.984 bash\bosh\bain.py:1722(__load)
@Infernio
Infernio / profile_startup_4.txt
Created January 17, 2021 13:09
After adding isinstance checks to comparison operators
bash.py 435 _main: 2746817 function calls (2741278 primitive calls) in 1.906 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 1.949 1.949 bash\basher\__init__.py:4213(Init)
1 0.000 0.000 1.080 1.080 bash\basher\__init__.py:4256(InitData)
1 0.000 0.000 0.567 0.567 bash\bosh\__init__.py:2094(refresh)
1 0.000 0.000 0.558 0.558 bash\basher\__init__.py:3838(__init__)
1 0.001 0.001 0.531 0.531 bash\basher\__init__.py:3603(__init__)
@Infernio
Infernio / profile_startup_3.txt
Created January 17, 2021 13:09
After skipping the ScrollLines call
bash.py 435 _main: 2745695 function calls (2740224 primitive calls) in 1.944 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 1.999 1.999 bash\basher\__init__.py:4213(Init)
1 0.000 0.000 1.097 1.097 bash\basher\__init__.py:4256(InitData)
1 0.000 0.000 0.586 0.586 bash\bosh\__init__.py:2093(refresh)
1 0.000 0.000 0.580 0.580 bash\basher\__init__.py:3838(__init__)
1 0.001 0.001 0.553 0.553 bash\basher\__init__.py:3603(__init__)
@Infernio
Infernio / profile_startup_2.txt
Created January 17, 2021 09:52
After inlining __getCase
bash.py 435 _main: 2730355 function calls (2724884 primitive calls) in 2.992 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 3.037 3.037 bash\basher\__init__.py:4206(Init)
3/1 0.000 0.000 1.260 1.260 bash\balt.py:869(_conversation_wrapper)
1 0.000 0.000 1.260 1.260 bash\basher\__init__.py:3942(RefreshData)
1 0.000 0.000 1.259 1.259 bash\basher\__init__.py:164(ShowPanel)
1 0.000 0.000 1.244 1.244 bash\basher\__init__.py:225(ShowPanel)
@Infernio
Infernio / profile_startup_1.txt
Created January 17, 2021 09:51
Baseline result
bash.py 435 _main: 2730355 function calls (2724884 primitive calls) in 2.970 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 3.021 3.021 bash\basher\__init__.py:4206(Init)
3/1 0.000 0.000 1.268 1.268 bash\balt.py:869(_conversation_wrapper)
1 0.000 0.000 1.268 1.268 bash\basher\__init__.py:3942(RefreshData)
1 0.000 0.000 1.267 1.267 bash\basher\__init__.py:164(ShowPanel)
1 0.000 0.000 1.252 1.252 bash\basher\__init__.py:225(ShowPanel)
@Infernio
Infernio / profile_disable_8.txt
Created January 10, 2021 13:48
After avoiding the get_ordered call in lo_deactivate
__init__.py 1075 _handle_left_down: 135315 function calls (135301 primitive calls) in 0.094 seconds
Ordered by: cumulative time
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 0.082 0.082 bash\balt.py:866(_conversation_wrapper)
1 0.000 0.000 0.082 0.082 bash\basher\__init__.py:1093(_toggle_active_state)
1 0.000 0.000 0.059 0.059 bash\bosh\__init__.py:1799(_modinfos_cache_wrapper)
3 0.000 0.000 0.026 0.009 bash\basher\__init__.py:154(SetDetails)
3 0.000 0.000 0.026 0.009 bash\basher\__init__.py:151(_setDetails)