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/models
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
..
action-summary.js.es6 DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592) 2019-05-27 10:15:39 +02:00
archetype.js.es6 DEV: s/Em/Ember (#6874) 2019-01-11 17:54:23 +01:00
badge-grouping.js.es6 apply prettier on gigantic find and replace (#7604) 2019-05-27 10:42:53 +02:00
badge.js.es6 REFACTOR: badge model (#7690) 2019-06-04 17:12:02 +02:00
category-list.js.es6 DEV: s/this._super()/this._super(...arguments) (#6908) 2019-01-19 10:05:51 +01:00
category.js.es6 DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592) 2019-05-27 10:15:39 +02:00
composer.js.es6 PERF: faster length calculation of composer body 2019-08-22 11:56:38 +10:00
draft.js.es6 Make code prettier 💅 2018-11-14 17:57:22 +01:00
group-history.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
group.js.es6 Revert "FEATURE: Publish read state on group messages. (#7989) [Undo revert] (#8024)" 2019-08-20 13:29:22 -03:00
input-validation.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
invite.js.es6 REFACTOR: invite model (#7699) 2019-06-05 11:24:06 +02:00
live-post-counts.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
login-method.js.es6 SECURITY: Require POST with CSRF token for OmniAuth request phase 2019-08-08 11:58:00 +01:00
model.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
nav-item.js.es6 FIX: uses simpler pattern for custom href on extra nav items (#8015) 2019-08-19 16:27:16 +10:00
permission-type.js.es6 DEV: Ember 3.8.0 2019-04-26 12:16:21 +02:00
post-action-type.js.es6 DEV: s/Em/Ember (#6874) 2019-01-11 17:54:23 +01:00
post-stream.js.es6 FIX: Hide live-loaded posts from ignored users 2019-07-25 12:01:29 +01:00
post.js.es6 DEV: prevents post.siteSettings computed property to be overridden (#7941) 2019-07-25 11:54:23 +02:00
rest.js.es6 prettier (#7653) 2019-05-30 17:28:07 +02:00
result-set.js.es6 DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592) 2019-05-27 10:15:39 +02:00
reviewable-history.js.es6 FEATURE: New 'Reviewable' model to make reviewable items generic 2019-03-28 12:45:10 -04:00
reviewable.js.es6 UX: Display "Queued Topic" if a Queued Post will create a topic 2019-06-05 14:11:28 -04:00
session.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
site.js.es6 DEV: reduces memory footprint of tests - step 1 (#7591) 2019-05-28 12:15:12 +02:00
static-page.js.es6 FIX: ensures static pages are using absolute path (#7828) 2019-07-01 11:25:45 +02:00
store.js.es6 FIX: Ember was raising an error without a .set here 2019-06-05 10:23:39 -04:00
tag-group.js.es6 DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592) 2019-05-27 10:15:39 +02:00
tag.js.es6 UX: show envelope when tag is only used in PM 2019-02-12 11:34:25 +01:00
topic-details.js.es6 FIX: lookup should be done against locale of reference (#7632) 2019-05-29 15:45:44 +02:00
topic-list.js.es6 REFACTOR: topic-list model (#7658) 2019-05-31 13:15:45 +02:00
topic-timer.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
topic-tracking-state.js.es6 FEATURE: Sync unread state live to topic lists (#7933) 2019-07-29 10:28:42 +01:00
topic.js.es6 FIX: Various watched words improvements 2019-08-02 15:29:12 +01:00
trust-level.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
user-action-group.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
user-action-stat.js.es6 DEV: Ember 3.8.0 2019-04-26 12:16:21 +02:00
user-action.js.es6 apply prettier on gigantic find and replace (#7604) 2019-05-27 10:42:53 +02:00
user-badge.js.es6 DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592) 2019-05-27 10:15:39 +02:00
user-draft.js.es6 apply prettier on gigantic find and replace (#7604) 2019-05-27 10:42:53 +02:00
user-drafts-stream.js.es6 DEV: global s/this.get\("(\w+)"\)/this.$1 (#7592) 2019-05-27 10:15:39 +02:00
user-posts-stream.js.es6 REFACTOR: user-posts-stream model (#7657) 2019-05-31 13:02:15 +02:00
user-stream.js.es6 SECURITY: updates lodash from 1.3.0 to 4.17.5 (#7546) 2019-05-16 10:34:19 +02:00
user.js.es6 FIX: Disallow user self-delete when user posted in PMs 2019-08-10 12:30:16 +02:00