From 5ff4d228591f05f2e3de68f8e6aaaef8d2a8aa18 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Wed, 19 Sep 2012 17:14:05 -0400 Subject: [PATCH] Note get_zephyr performance (imported from commit 215a457d30f5a355d18882a9703ff671248b054f) --- zephyr/static/js/zephyr.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index 18d96b2b57..b8b736a298 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -256,6 +256,8 @@ function get_id(zephyr_row) { return zephyr_row.attr('zid'); } +// NB: this is slow (50 ms or more) due to the custom attribute. +// We instead could compute an id based on the zid and focused table. function get_zephyr(zephyr_id) { return $("table.focused_table [zid=" + zephyr_id + "]"); }