elementary: use array instead of list for subchildren 15/226615/2
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Mon, 17 Feb 2020 12:56:06 +0000 (13:56 +0100)
committerJongmin Lee <jm105.lee@samsung.com>
Thu, 5 Mar 2020 09:46:39 +0000 (09:46 +0000)
commit655483e589f06a2b7d8399236705e09e0d54ba7e
treed0c58ac2cf502363e695d7e5b64ddf5a60512c9c
parentda5cbbf808e8dc55da4356876a65b06e8f76a6dd
elementary: use array instead of list for subchildren

this safes in the runtime of elm_test round about 9kb (*).
Additionally, using a array here is jumping way fewer times arround in
memory, as we do not need to jump from node to node in a list.

Additionally, this commit replaces a few abort disabler macros with a
error checking macro. (which cleans the log).

*: explanation: we have round about 600 widgets in elm_test, every
widget is normally refered once, every list node has 4 pointer, makes
round about 9600 bytes or rougly 9 KB. So the messured savings are more
or less explaining the reality.

Reviewed-by: Carsten Haitzler (Rasterman) <rasterman.com>
Differential Revision: https://phab.enlightenment.org/D11374

Change-Id: Ib906697a1ba71277e1fbdebedbdc0c05cb44d53a
16 files changed:
src/lib/elementary/efl_ui_layout.c
src/lib/elementary/efl_ui_panel.c
src/lib/elementary/efl_ui_widget.c
src/lib/elementary/efl_ui_widget_common.c
src/lib/elementary/efl_ui_win.c
src/lib/elementary/elm_atspi_bridge.c
src/lib/elementary/elm_box.c
src/lib/elementary/elm_config.c
src/lib/elementary/elm_focus_legacy.c
src/lib/elementary/elm_genlist.c
src/lib/elementary/elm_grid.c
src/lib/elementary/elm_panel.c
src/lib/elementary/elm_table.c
src/lib/elementary/elm_widget.h
src/lib/elementary_tizen/elm_genlist.c
src/tests/elementary/efl_ui_test_widget.c