From: cee1 <fy...@gm...> - 2016-01-22 02:32:53
|
Hi all, I notice each time touch/set a cell, priority_high_m is increased and its value is assigned to cell's priority_m field. So theoretically, it's possible to overflow priority_high_m, right? E.g. Considering in an automated UI test, (only) a text entry is frequently updated, the priority_m of the backed cell is continuously increased, and will finally overflow. The priority_m is (only) used in flow(): to sort the cells, and process the relations attached to a cell one by one, right? In other words, only the sequence is cared, not the distance. So what about maintaining a `priority list', if a cell is touched/set, move to .begin() ? Moreover, it may change type of the priority_m to a pointer of `link node of the list', then if a cell is touched/set, it will be unlinked, and reinserted to .begin() quickly. -- Regards, - cee1 |