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

twang2218 / pmap / 54 / 1
96%
master: 96%

Build:
DEFAULT BRANCH: master
Ran 18 Jan 2018 03:28AM UTC
Files 15
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

18 Jan 2018 03:04AM UTC coverage: 97.959%. Remained the same
54.1

push

travis-ci

twang2218
Improve slicing performance

* Replace `head()/tail()` with `data.table`'s indexing. It can improve performance by 30%~60%.

Before (`head()/tail()`):

---
Unit: milliseconds
                       expr        min         lq       mean     median         uq        max neval
  create_pmap(copy(el_10k))   331.3813   430.4172  1004.1038   486.5171   518.0146  5945.3911    10
 create_pmap(copy(el_100k))   417.2192   452.8110   544.5129   591.1354   607.8555   641.2991    10
   create_pmap(copy(el_1m))  2057.1037  2202.2641  4609.8769  2631.9217  7847.6545  8466.5252    10
  create_pmap(copy(el_10m)) 23082.6826 28037.9299 31128.4557 29865.4468 33355.8728 42216.4454    10
---

After (`data.table[]`):

---
Unit: milliseconds
                       expr        min         lq       mean     median         uq        max neval
  create_pmap(copy(el_10k))   339.9077   377.3973   642.3140   456.4188   971.7753  1240.7110    10
 create_pmap(copy(el_100k))   411.8673   414.4656   535.7509   451.7886   633.8586   956.8731    10
   create_pmap(copy(el_1m))  1181.9168  1206.9495  1629.7927  1542.5033  1881.3097  2672.0710    10
  create_pmap(copy(el_10m)) 16923.7892 16957.7548 19407.6900 18383.3316 19774.4897 29064.6801    10
---

Signed-off-by: Tao Wang <twang2218@gmail.com>

336 of 343 relevant lines covered (97.96%)

17.71 hits per line

Source Files on job 54.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 54
  • Travis Job 54.1
  • 94b1dd2e on github
  • Prev Job for on master (#53.2)
  • Next Job for on master (#55.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