Commit graph

7 commits

Author SHA1 Message Date
Isiah Meadows
1f4b2cf49a
Deservicify core (#2458)
* De-servicify router (mostly)

Still uses the redraw service, but it no longer has an intermediate
service of its own.

Also, did a *lot* of test deduplication in this. About 30-40% of the
router service tests were already tested on the main router API instance
itself.

Bundle size decreased from 9560 to 9548 bytes min+gzip.

* Merge `m.mount` + `m.redraw`, update router

Simplifies the router and redraw mechanism, and makes it much easier to
keep predictable.

Bundle size down to 9433 bytes min+gzip, docs updated accordingly.

* Make `mithril/render` just return the `m.render` function directly.

* Deservicify `m.render`, revise `m.route`

- You now have to use `mithril/render/render` directly if you want an
  implicit redraw function. (This will likely be going away in v3.)
- Revise `m.route` to only `key` components

* Add `redraw` to `m.render`, deservicify requests

* Test error logging

* Update docs + changelog [skip ci]
2019-07-07 18:28:43 -04:00
Pierre-Yves Gérardy
15cf47a829 [performance] use individual files rather than the build, revamp the attrs code to reduce variance, reset the scratch pad more reliably 2018-06-07 18:09:38 +02:00
Pierre-Yves Gérardy
1a87cc44cd [performance testing] add classes in some selectors for the attrs test 2018-06-07 18:09:38 +02:00
Pierre-Yves Gérardy
1fdc9278c7 [benchmark] add consecutive nullish values to the attrs test 2018-06-01 21:27:02 +02:00
Pierre-Yves Gérardy
203df39c30 Remove the DOM nodes recycling pool (fix #1653, fix #2023) 2018-04-16 09:45:45 +02:00
Isiah Meadows
7f0b7e04dd Make the benchmark a little more precise
We special-case identical vnode trees, so it's better that we test both
identical and rebuilt trees when benchmarking rendering.
2017-08-31 05:31:07 -04:00
Pat Cavit
5660637e30 docs: new repo refs and build tweaks 2017-05-02 13:12:00 -07:00