discourse/spec
Guo Xiang Tan 5d4221fbe1 PERF: Avoid calling expensive `PostGuardian#can_see_post?` multiple times.
Before

```
Your Results: (note for timings- percentile is first, duration is second
in millisecs)
---
topic_admin:
  50: 19
  75: 19
  90: 21
  99: 27
topic:
  50: 56
  75: 62
  90: 64
  99: 99
timings:
  load_rails: 1262
ruby-version: 2.4.1-p111
rss_kb: 198432
pss_kb: 136612
virtual: physical
architecture: amd64
operatingsystem: Ubuntu
memorysize: 15.59 GB
kernelversion: 4.10.0
physicalprocessorcount: 1
processor0: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
rss_kb_9877: 327892
pss_kb_9877: 263671
rss_kb_9946: 325468
pss_kb_9946: 261671
rss_kb_10153: 326456
pss_kb_10153: 262657
```

After

```
Your Results: (note for timings- percentile is first, duration is second
in millisecs)
---
topic_admin:
  50: 18
  75: 18
  90: 20
  99: 28
topic:
  50: 41
  75: 42
  90: 46
  99: 49
timings:
  load_rails: 1201
ruby-version: 2.4.1-p111
rss_kb: 187936
pss_kb: 123596
virtual: physical
architecture: amd64
operatingsystem: Ubuntu
memorysize: 15.59 GB
kernelversion: 4.10.0
physicalprocessorcount: 1
processor0: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
rss_kb_26478: 342360
pss_kb_26478: 276696
rss_kb_26547: 340368
pss_kb_26547: 275930
rss_kb_26747: 338964
pss_kb_26747: 274466
```
2017-09-08 14:07:24 +08:00
..
components PERF: Avoid calling expensive `PostGuardian#can_see_post?` multiple times. 2017-09-08 14:07:24 +08:00
controllers PERF: Avoid calling expensive `PostGuardian#can_see_post?` multiple times. 2017-09-08 14:07:24 +08:00
fabricators Merge pull request #5013 from LeoMcA/alternate-emails-phase-1.5 2017-08-16 16:19:28 +09:00
fixtures FIX: fails loud if default setting is not set 2017-08-15 12:07:25 +02:00
helpers Nuke all `SiteSetting.stubs` from our codebase. 2017-07-07 15:09:14 +09:00
integration Move new controller specs to reqeusts folder. 2017-08-24 12:01:11 +09:00
integrity FIX: fails loud if default setting is not set 2017-08-15 12:07:25 +02:00
jobs move fix to top of test 2017-09-01 13:12:47 -04:00
mailers FIX: digest emails should not include posts that are still in the edit grace period 2017-08-14 12:47:33 -04:00
models FIX: correctly resets user_themes template 2017-09-04 13:27:58 +02:00
multisite Only remove default locale which is the only column we touch 2017-08-29 14:02:24 -04:00
phantom_js FIX: Don't hardcode text in smoke test. 2017-05-22 08:01:33 +08:00
requests Add missing test case for `PostController#timings`. 2017-09-04 16:36:02 +08:00
serializers Split alias levels in mentionable and messageable levels. (#5065) 2017-08-28 12:32:08 -04:00
services FIX: staged users should get emails on must_approve_users sites 2017-08-28 17:32:07 -04:00
support add more diagnostics for flaky spec 2017-08-23 10:41:57 -04:00
tasks Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
views/omniauth_callbacks Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discourse_tagging_spec.rb FIX: prevent creation of tags with invalid characters 2016-10-12 15:44:36 -04:00
rails_helper.rb Remove Spork dependency. 2017-08-10 22:54:52 +01:00