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

twang2218 / pmap / 54
96%

Build:
DEFAULT BRANCH: master
Ran 18 Jan 2018 03:27AM UTC
Jobs 4
Files 15
Run time 59s
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
54

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

70.86 hits per line

Jobs
ID Job ID Ran Files Coverage
1 54.1 18 Jan 2018 03:28AM UTC 0
97.96
Travis Job 54.1
2 54.2 18 Jan 2018 03:28AM UTC 0
97.96
Travis Job 54.2
3 54.3 18 Jan 2018 03:27AM UTC 0
97.96
Travis Job 54.3
4 54.4 18 Jan 2018 03:27AM UTC 0
97.96
Travis Job 54.4
Source Files on build 54
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #54
  • 94b1dd2e on github
  • Prev Build on master (#53)
  • Next Build on master (#55)
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