• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

philpl / extendable-immutable / 68
99%

Build:
DEFAULT BRANCH: master
Ran 21 Sep 2016 02:37PM UTC
Jobs 2
Files 9
Run time 9s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
68

push

travis-ci

philpl
Remove inefficient empty instance storage

The empty instance of a extendable (or sth inheriting it) have
to be stored, so that the same reference can be returned, thus
keeping the reference of the empty instances constant.

Before, the empty instance was stored in the constructor. But
since the constructor curiously inherits from the upper
constructor, there had to be search function, that checks
whether the reference actually stems from a parent. That was
really inefficient.

This was now replaced with a small store inside the extendable.js
that stores a prototype -> empty instance mapping.

It speeds up the perf test from 54μs to 45μs. Which is not far
away from pure Immutable.js's 42μs.

95 of 97 relevant lines covered (97.94%)

69.46 hits per line

Jobs
ID Job ID Ran Files Coverage
1 68.1 21 Sep 2016 02:37PM UTC 0
97.94
Travis Job 68.1
2 68.2 21 Sep 2016 02:37PM UTC 0
97.94
Travis Job 68.2
Source Files on build 68
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #68
  • e3f1d76e on github
  • Prev Build on master (#64)
  • Next Build on master (#69)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc