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

JuliaIO / VideoIO.jl / 1004
34%

Build:
DEFAULT BRANCH: master
Ran 03 Aug 2020 01:39AM UTC
Jobs 6
Files 105
Run time 5min
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
1004

push

travis-ci

web-flow
Increase efficiency of accessing members of struct pointers (#250)

The current code to access a member of a struct pointer uses a package function,
`fieldposition`, that has identical functionality to a function provided in
base, `fieldindex`. While this latter function is not exported, it is documented
and will hopefully remain a part of Julia's API. I imagine that the base
function is more performant than the implementation in `fieldposition`, which
compares each field name to the target field name in order to find the position
of a field. As such, I have replaced calls to `fieldposition` with calls to
`Base.fieldindex`, and deleted the function `fieldposition`.

Additionally, when setting a member of a struct pointer, the current
implementation calculates the pointer position, wraps it in a julia array with
`unsafe_wrap`, and then sets the first element of that array to the desired
value. The same result is achieved, perhaps more simply, by using
`unsafe_store!` and not using an intermediate array. I have therefore replaced
the call to `unsafe_wrap` and subsequent code with `unsafe_store!`.

While I do not know if the existing code causes a measurable decrease in
performance, using the base functions reduces the amount of code, and most
likely makes it faster.

508 of 1443 relevant lines covered (35.2%)

347695.03 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1004.1 03 Aug 2020 01:39AM UTC 0
33.26
Travis Job 1004.1
2 1004.2 03 Aug 2020 01:42AM UTC 0
34.44
Travis Job 1004.2
3 1004.3 03 Aug 2020 01:40AM UTC 0
33.96
Travis Job 1004.3
4 1004.4 03 Aug 2020 01:40AM UTC 0
21.31
Travis Job 1004.4
5 1004.5 03 Aug 2020 01:40AM UTC 0
22.14
Travis Job 1004.5
6 1004.6 03 Aug 2020 01:44AM UTC 0
21.75
Travis Job 1004.6
Source Files on build 1004
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1004
  • b3dab397 on github
  • Prev Build on master (#1002)
  • Next Build on master (#1006)
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