• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

urwid / urwid / 13388670106
74%

Build:
DEFAULT BRANCH: master
Ran 18 Feb 2025 10:42AM UTC
Jobs 9
Files 63
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Feb 2025 10:39AM UTC coverage: 74.78%. Remained the same
13388670106

push

travis-pro

web-flow
Make sizing computation much faster for nested containers (#991)

When nesting Columns, Pile and other containers, calls to widget.sizing() can
become very slow, especially on slower architectures. Profiling showed that we
are spending a big slice of time in enum.IntFlag dunder methods (i.e, __new__,
__or__, __and__ and __call__) and _get_value (which is used by dunder methods).

   111191    0.014    0.000    0.014    0.000 enum.py:1129(__new__)
   333573    0.039    0.000    0.053    0.000 enum.py:1544(_get_value)
    56592    0.040    0.000    0.086    0.000 enum.py:1551(__or__)
    54599    0.037    0.000    0.080    0.000 enum.py:1562(__and__)
   111191    0.021    0.000    0.035    0.000 enum.py:726(__call__)

Although enum.IntFlag feels much cleaner than enum.IntEnum for the job, the
performance of enum.IntEnum is much better.

In Subiquity, switching from enum.IntFlag to enum.IntEnum causes calls to
Pile.sizing() to be about 10 times faster.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>

1941 of 2548 branches covered (76.18%)

Branch coverage included in aggregate %.

20 of 20 new or added lines in 2 files covered. (100.0%)

9264 of 12436 relevant lines covered (74.49%)

6.22 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.11-windows-latest" - 13388670106.1 18 Feb 2025 10:44AM UTC 60
71.29
Travis Job
2 run-3.12-windows-latest" - 13388670106.2 18 Feb 2025 10:43AM UTC 60
71.29
Travis Job
3 run-3.9-ubuntu-latest" - 13388670106.3 18 Feb 2025 10:42AM UTC 61
75.17
Travis Job
4 run-3.13-ubuntu-latest" - 13388670106.4 18 Feb 2025 10:43AM UTC 61
75.15
Travis Job
5 run-3.9-windows-latest" - 13388670106.5 18 Feb 2025 10:42AM UTC 60
71.33
Travis Job
6 run-3.12-ubuntu-latest" - 13388670106.6 18 Feb 2025 10:42AM UTC 61
75.15
Travis Job
7 run-3.10-ubuntu-latest" - 13388670106.7 18 Feb 2025 10:42AM UTC 61
75.15
Travis Job
8 run-3.10-windows-latest" - 13388670106.8 18 Feb 2025 10:43AM UTC 60
71.3
Travis Job
9 run-3.11-ubuntu-latest" - 13388670106.9 18 Feb 2025 10:42AM UTC 61
75.15
Travis Job
Source Files on build 13388670106
  • Tree
  • List 63
  • Changed 4
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Travis Build #13388670106
  • d8a5cce8 on github
  • Prev Build on master (#13363725938)
  • Next Build on master (#13626486689)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc