zulip/zephyr
Waseem Daher b730dc7983 Huge speedup in get_next_visible/get_prev_visible.
nextAll/prevAll walks the entire DOM, basically.
This code only walks the DOM until we find a new .message_row.

This speeds up the average time of a call to this function from about
6.38ms to 0.678ms, in my benchmarking.

Admittedly, the whole outer loop here could still use some
optimization, if we want to; do we really need to call this 1000
times?

(imported from commit 852e2f660a16f8cfd7be35d3271aedb1ac481663)
2012-10-16 17:06:36 -04:00
..
fixtures Rename zephyrs.json => messages.json in .gitignore. 2012-10-10 10:39:27 -04:00
jstemplates Eliminate some inline styles (visibility: collapse). 2012-10-15 22:47:41 -04:00
lib Markdown: Disable headings using our extension 2012-10-16 11:39:00 -04:00
management Rename/reorganize our urls to be more consistent. 2012-10-16 15:56:06 -04:00
static Huge speedup in get_next_visible/get_prev_visible. 2012-10-16 17:06:36 -04:00
tests gitignore zephyr/tests/zephyrdb.test 2012-10-11 16:25:40 -04:00
__init__.py Initial Django commit: basic account, zephyr stream, narrowing, etc. 2012-08-28 12:44:51 -04:00
context_processors.py Hide most of the navbar on the deployed app 2012-10-15 18:44:36 -04:00
decorator.py Remove unused imports 2012-09-07 13:57:32 -04:00
forms.py Implement confirmation for new user signups. 2012-10-01 10:45:58 -04:00
models.py Some import cleanup 2012-10-15 16:16:10 -04:00
tests.py Don't redirect to a login page when responding to json messages. 2012-10-16 16:38:39 -04:00
views.py Convert last few json views to use the json_success api. 2012-10-16 16:54:41 -04:00