awesome/lib
Uli Schlachter dfcbf20d81 Add and use wibox.hierarchy:update()
This function updates a hierarchy if the layout of some widgets changed. It does
nothing on the parts that did not change. This should be more efficient than
recomputing the whole hierarchy whenever something changes.

Once again, this has some positive results on the "benchmark test":

Before:
        create wibox: 0.083016   sec/iter ( 13 iters, 1.161 sec for benchmark)
    update textclock: 0.00391091 sec/iter (271 iters, 3.219 sec for benchmark)
  relayout textclock: 0.00273234 sec/iter (397 iters, 1.087 sec for benchmark)
    redraw textclock: 0.0010191  sec/iter (989 iters, 1.745 sec for benchmark)

After:
        create wibox: 0.083146   sec/iter ( 13 iters, 1.163 sec for benchmark)
    update textclock: 0.00170519 sec/iter (647 iters, 2.201 sec for benchmark)
  relayout textclock: 0.000581637 sec/iter (1880 iters, 1.094 sec for benchmark)
    redraw textclock: 0.0010167  sec/iter (997 iters, 1.773 sec for benchmark)

So again no difference for creating wiboxes (100.16% compared to before). This
time we also have no real difference for creating wiboxes (99.76%). Update (44%)
and relayout (21%) are improved a lot.

Closes https://github.com/awesomeWM/awesome/pull/463.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-09-23 20:57:41 +02:00
..
awful Fix tooltip.set_geometry: provide textbox context 2015-09-23 10:35:13 +02:00
beautiful Use awful.util.round in beautiful.xresources.apply_dpi 2015-08-12 14:18:57 +02:00
gears Merge pull request #454 from psychon/remove_gears.debug.assert 2015-09-21 21:16:36 +02:00
menubar menubar: fix height to be rounded 2015-08-31 20:47:22 +02:00
naughty naughty.notify: improve doc for args.run 2015-09-23 20:56:17 +02:00
wibox Add and use wibox.hierarchy:update() 2015-09-23 20:57:41 +02:00