# Upgrade to Ember 2.x?

**URL:** https://meta.discourse.org/t/upgrade-to-ember-2-x/51268
**Category:** Development
**Created:** [2016年十月8日 14:57 UTC](https://meta.discourse.org/t/upgrade-to-ember-2-x/51268 "2016-10-08T14:57:46Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)
#### Post date: [2016年十月8日 14:57 UTC](https://meta.discourse.org/t/upgrade-to-ember-2-x/51268/1 "2016-10-08T14:57:46Z")

</div>

Apologies if this has been discussed somewhere before.

Discourse appears to be running Ember 1.12, somewhat of a :philosoraptor: given that the latest release is 2.9 beta. I totally get why; Ember 2.0 removed the concepts of views and controllers on the frontend, which Discourse relies on heavily (there’s ~50 each), so while it’s not as bad as an Angular 1.x → 2.0 jump (we’re dealing with that mess at Loomio at the moment), at a glance it feels significant.

I’m not super knowledgeable on the matter, and the only thing I can say I’ve actually really missed so far is the `{{each-in}}` command (edit: now also the `get` template helper), but I have to imagine Ember 2.x has a smaller footprint (The [docs](http://emberjs.com/blog/2015/08/13/ember-2-0-released.html) say the major version jump was primarily _removing_ junk) and runs much faster than 1.12. Are there plans for an upgrade path here?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [2016年十月8日 18:35 UTC](https://meta.discourse.org/t/upgrade-to-ember-2-x/51268/2 "2016-10-08T18:35:08Z")

</div>

Could be planned for 1.7

> [@eviltrout](#):
>
> Ember upgrade work we’ll do in 1.7.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2016年十月9日 00:44 UTC](https://meta.discourse.org/t/upgrade-to-ember-2-x/51268/3 "2016-10-09T00:44:04Z")

</div>

It’s already planned for the next release or so. The glimmer compiler will help too, with compression for templates.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016年十月9日 01:00 UTC](https://meta.discourse.org/t/upgrade-to-ember-2-x/51268/4 "2016-10-09T01:00:53Z")

</div>

> [@gdpelican](#):
>
> runs much faster than 1.12

Debatable. One reason we avoided upgrading was performance:

> Doing some quick benchmarks at [http://emberperf.eviltrout.com/](http://emberperf.eviltrout.com/) for Render Complex List, on a fast desktop machine in Chrome latest:

> Ember 1.11 – 35 ms  
> Ember 1.12 – 43 ms (23% slower)  
> Ember 1.13.3 – 129 ms (!!)  
> Ember 1.13.9 – 80 ms  
> Ember 1.13.10 – 77 ms  
> Ember 2.0.2 – 78 ms  
> Ember 2.1.0 – 88 ms  
> Ember 2.2.0 – 62 ms  
> Ember 2.3.2 – 68 ms  
> Ember 2.4.4 – 66 ms  
> Ember 2.5.1 – 67 ms  
> Ember 2.6.x – 68 ms (55% slower than 1.12)  
> Ember 2.7.1 – 65 ms  
> Ember 2.8.x – 60 ms

> (canary and beta fail to work for me at all.)

> Of course you can multiply those numbers by 2x-10x depending on platform and device speed, where Android runs to the slower end.

We will be upgrading soon, as the performance loss is now mostly acceptable since we bypassed Ember for the virtual DOM approach on our most important pages in 1.5 (topic, header). The new near-binary serialization of templates will save bytes over the wire, and we’re hoping startup speed will improve.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2016年十一月7日 23:25 UTC](https://meta.discourse.org/t/upgrade-to-ember-2-x/51268/5 "2016-11-07T23:25:06Z")

</div>

Good news on Ember 2.10!

> [@codinghorror](#):
>
> Ember 2.7.1 – 65 ms  
> Ember 2.8.x – 60 ms  
> Ember 2.9.x – 60 ms  
> Ember 2.10 (beta) – 30ms ❗

Also more good news, @eviltrout has **Ember 2.3 almost ready on our end** , and we’ll either deploy Meta from a branch, or merge in Ember 2.3.

Ember 2.4 is a bigger milestone that may take a week or two more.

Then we can plow towards Ember 2.10.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [2016年十一月7日 23:27 UTC](https://meta.discourse.org/t/upgrade-to-ember-2-x/51268/6 "2016-11-07T23:27:35Z")

</div>

> [@codinghorror](#):
>
> Then we can plow towards Ember 2.10.

Is 2.10 the goal for 1.7, or later?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2016年十一月7日 23:32 UTC](https://meta.discourse.org/t/upgrade-to-ember-2-x/51268/7 "2016-11-07T23:32:57Z")

</div>

> [@jomaxro](#):
>
> Is 2.10 the goal for 1.7, or later?

we don’t know, probably 1.7, depends on how @eviltrout goes, too early to say.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [2016年十一月8日 16:30 UTC](https://meta.discourse.org/t/upgrade-to-ember-2-x/51268/8 "2016-11-08T16:30:57Z")

</div>

Yeah it’s really hard to predict how long some of the upgrades are going to take. Instead I’m just going to keep going through it and updating as much as I can.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2017年二月14日 15:29 UTC](https://meta.discourse.org/t/upgrade-to-ember-2-x/51268/9 "2017-02-14T15:29:19Z")

</div>


