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

JuliaMath / FixedPointDecimals.jl / 221
98%

Build:
DEFAULT BRANCH: master
Ran 06 Dec 2018 04:18AM UTC
Jobs 2
Files 1
Run time 3101min
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
221

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%)

6696.99 hits per line

Jobs
ID Job ID Ran Files Coverage
1 221.1 06 Dec 2018 04:18AM UTC 0
98.82
Travis Job 221.1
4 221.4 06 Dec 2018 04:20AM UTC 0
98.82
Travis Job 221.4
Source Files on build 221
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #221
  • 1768c58c on github
  • Prev Build on master (#216)
  • Next Build on master (#224)
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

© 2025 Coveralls, Inc