BackburnerJS / backburner.js

A rewrite of the Ember.js run loop as a generic microlibrary
MIT License
392 stars 80 forks source link

Add counters for better insight into frequency... #316

Closed rwjblue closed 6 years ago

rwjblue commented 6 years ago

Adds simple lightweight counters to each of the public API methods, event counts, etc. The idea here is that we can begin getting better insight into which operations are the most common in real applications. This will help us know which things are more important from a performance perspective...

rwjblue commented 6 years ago

Thoughts @krisselden / @stefanpenner?

rwjblue commented 6 years ago

Dist output impact:

Before

-rw-r--r--  1 rjackson  101   9.8K Jan 21 23:40 backburner.min.js
-rw-r--r--  1 rjackson  101   3.1K Jan 21 23:40 backburner.min.js.gz

After

-rw-r--r--  1 rjackson  101    11K Jan 21 23:41 backburner.min.js
-rw-r--r--  1 rjackson  101   3.4K Jan 21 23:41 backburner.min.js.gz
stefanpenner commented 6 years ago

Sounds useful, abit bummed out that it increases the payload, but not really by much. :shipit: