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

JuliaMath / FixedPointDecimals.jl / 216 / 1
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 29 Nov 2018 04:18AM UTC
Files 1
Run time 0s
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

12 Nov 2018 07:46PM UTC coverage: 98.824%. Remained the same
216.1

cron

travis-ci

omus
Performance fix: avoid unnecessary `convert` on setindex!、copy when type is same. (#38)

* Add `convert(::Type{T}, x::T) where {T<:FD} = x`

This fixes unnecessary copies on `setindex!`, etc.

* Remove "copy constructor" after correct `convert` fix

The "copy constructor" is no longer necessary now that a no-op
`convert` is added, since by default construction falls back to convert.

To verify, after this change, the performance is still correct:
```
julia> f = FixedPointDecimals.FixedDecimal{Int128,2}(3.25)
FixedDecimal{Int128,2}(3.25)

julia> @btime x = FixedPointDecimals.FixedDecimal{Int128, 2}($f)
  0.036 ns (0 allocations: 0 bytes)
FixedDecimal{Int128,2}(3.25)
```

And `@code_native` shows this to be a simple reinterpret.

168 of 170 relevant lines covered (98.82%)

3348.49 hits per line

Source Files on job 216.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 189
  • Travis Job 216.1
  • 1768c58c on github
  • Prev Job for on master (#215.1)
  • Next Job for on master (#221.1)
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