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

urwid / urwid / 13388670106 / 2
74%
master: 74%

Build:
DEFAULT BRANCH: master
Ran 18 Feb 2025 10:44AM UTC
Files 60
Run time 2s
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: 71.289%. Remained the same
13388670106.2

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>

1594 of 2170 branches covered (73.46%)

Branch coverage included in aggregate %.

7891 of 11135 relevant lines covered (70.87%)

0.71 hits per line

Source Files on job run-3.12-windows-latest" - 13388670106.2
  • Tree
  • List 60
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 13388670106
  • Travis Job
  • d8a5cce8 on github
  • Prev Job for on master (#13363725938.6)
  • Next Job for on master (#13626486689.3)
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