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

JuliaMath / FixedPointDecimals.jl / 221 / 4
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 06 Dec 2018 04:20AM UTC
Files 1
Run time 2845min
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
221.4

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