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

lloydmeta / enumeratum / 720
89%

Build:
DEFAULT BRANCH: master
Ran 05 Feb 2017 05:56AM UTC
Jobs 1
Files 44
Run time 2s
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
720

push

travis-ci

web-flow
Closes #105: Optimise entryName in stackable traits (#107)

Instead of using abstract override, just override and refer to a stable
private lazy val that refers to super.entryName. Lazy is used because
we don't want to create and store the String if users don't need to
serialise their enums.

Performance comparison (spoiler, in stacked case ~500x faster)

```
Before:
[info] Benchmark                         Mode  Cnt     Score    Error  Units
[info] EnumBenchmarks.entryNameStacked   avgt   30  1499.862 ± 34.588  ns/op
[info] EnumBenchmarks.entryNameStandard  avgt   30     4.461 ±  0.087  ns/op

After:
[info] Benchmark                         Mode  Cnt  Score   Error  Units
[info] EnumBenchmarks.entryNameStacked   avgt   30  3.180 ± 0.040  ns/op
[info] EnumBenchmarks.entryNameStandard  avgt   30  3.185 ± 0.075  ns/op
```

402 of 402 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
2 720.2 05 Feb 2017 05:56AM UTC 0
100.0
Travis Job 720.2
Source Files on build 720
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #720
  • f524ff6f on github
  • Prev Build on master (#717)
  • Next Build on master (#727)
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