This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
Sam Saffron afc7830be5 PERF: faster length calculation of composer body
Every time we type a letter the composer issues a reply length check.

This is due to the interconnecting components, the title one depends on the
body which means that this decision making is passed along each time, even
if the title does not need it strictly.

Anyway...

This optimisation has 3 parts:

1. If the composer string is super long (10000 chars) we will bypass, quote
stripping and space squashing.

2. Quote stripping is now done much more efficiently, we strip them all in
one go

3. Space squashing eg: `hello    world` to `hello world` is done in an
efficient loop to avoid needing to generate superflous strings that need
GC
2019-08-22 11:56:38 +10:00
..
adapters SECURITY: XSS in routes 2019-06-26 16:34:15 +02:00
components SECURITY: Don't send CSRF token in query string 2019-08-21 13:16:38 +01:00
controllers Revert "FEATURE: Publish read state on group messages. (#7989) [Undo revert] (#8024)" 2019-08-20 13:29:22 -03:00
helpers FIX: Rename deprecated icons, allow custom icons in badges 2019-07-16 11:13:44 -04:00
initializers SECURITY: Restrict message-bus access on login_required sites 2019-08-14 09:43:12 +01:00
lib Revert "FEATURE: Publish read state on group messages. (#7989) [Undo revert] (#8024)" 2019-08-20 13:29:22 -03:00
mixins SECURITY: Don't send CSRF token in query string 2019-08-21 13:16:38 +01:00
models PERF: faster length calculation of composer body 2019-08-22 11:56:38 +10:00
pre-initializers FIX: Better detection of Apple browsers (#7961) 2019-08-02 12:43:25 -03:00
raw-views DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592) 2019-05-27 10:15:39 +02:00
routes FEATURE: add support for group members visibility level (#8004) 2019-08-14 19:00:04 +05:30
services FEATURE: favorites emojis will also show in composer autocomplete (#8011) 2019-08-16 11:47:03 +02:00
templates Revert "FEATURE: Publish read state on group messages. (#7989) [Undo revert] (#8024)" 2019-08-20 13:29:22 -03:00
widgets Revert "FEATURE: Publish read state on group messages. (#7989) [Undo revert] (#8024)" 2019-08-20 13:29:22 -03:00
mapping-router.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00