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

Instagram / IGListKit / 2078
100%

Build:
DEFAULT BRANCH: master
Ran 13 Feb 2018 06:21PM UTC
Jobs 2
Files 99
Run time 11min
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
2078

push

travis-ci

facebook-github-bot
<a href="https://github.com/Instagram/IGListKit/commit/afd2d29ee">Add diffing optimization when result is all deletes or inserts

Summary:
In an attempt to best other diffing libraries, I noticed that pure insert/delete diffing results would be almost 5x slower than changes between existing arrays. This is pretty much a benchmarking enhancement, but improves diffing performance by ~5x when the from-array or to-array is empty.

```
// OLD only inserts
avg: 0.007469, min: 0.006998, max: 0.016550, p50: 0.007254, p75: 0.007712, p90: 0.007899, p95: 0.008345, p99: 0.016550
// NEW
avg: 0.001392, min: 0.001256, max: 0.006772, p50: 0.001289, p75: 0.001348, p90: 0.001533, p95: 0.001614, p99: 0.006772
```

```
// OLD only deletes
avg: 0.005821, min: 0.005669, max: 0.006511, p50: 0.005766, p75: 0.005852, p90: 0.006030, p95: 0.006204, p99: 0.006511
// NEW
avg: 0.001184, min: 0.001096, max: 0.001673, p50: 0.001123, p75: 0.001212, p90: 0.001378, p95: 0.001467, p99: 0.001673
```

Note the average time improvements (seconds).

Benchmarking done on a 4s w/ this project:
https://pxl.cl/bLBB

Reviewed By: manicakes

Differential Revision: D6968683

fbshipit-source-id: </a><a class="double-link" href="https://github.com/Instagram/IGListKit/commit/0d8e058f0">0d8e058f0</a>

12555 of 13171 relevant lines covered (95.32%)

510.39 hits per line

Jobs
ID Job ID Ran Files Coverage
2 2078.2 (DESTINATION="OS=10.3.1,name=iPhone 7" SDK="$IOS_SDK" SCHEME="$IOS_SCHEME" RUN_TESTS="YES" RUN_UI_TESTS="NO" BUILD_EXAMPLE="YES" POD_LINT="NO", Gemfile) 13 Feb 2018 06:21PM UTC 0
95.32
Travis Job 2078.2
3 2078.3 (DESTINATION="OS=11.2,name=iPhone X" SDK="$IOS_SDK" SCHEME="$IOS_SCHEME" RUN_TESTS="YES" RUN_UI_TESTS="YES" BUILD_EXAMPLE="YES" POD_LINT="NO", Gemfile) 13 Feb 2018 06:32PM UTC 0
95.3
Travis Job 2078.3
Source Files on build 2078
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2078
  • afd2d29e on github
  • Prev Build on master (#2076)
  • Next Build on master (#2079)
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