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

MITLibraries / slingshot / 355
83%
master: 93%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/rsa-4.7
DEFAULT BRANCH: master
Ran 17 Jul 2019 05:04PM UTC
Jobs 1
Files 10
Run time 3s
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
355

Pull #104

travis-ci

web-flow
Fix S3 read/write performance issues

The S3IO wrapper class that was needed to make an S3 object function
like a file led to some pretty bad performance problems. An object was
read in most cases at no more than 8192 bytes at a time. As you can
imagine, this is not an efficient way to read a large file over the
network.

These changes switch to using multipart uploads for S3 and manually
request chunks of the file at a specified chunk size when reading the
zipfile. The Wrapper class that inherits from BufferedIOBase is a shim
for loading the shapefile into Postgres because it's not possible to
control the buffering otherwise.

The S3_BUFFER_SIZE constant controls how much is requested from S3 at a
time. Keep in mind you will likely see an increase in memory consumption
equal to roughly this number times however many worker threads you use.

It's probably worth revisiting the whole IO system at some point. The
biggest constraint probably comes from running this on Fargate.
Exploring other deployment options may make this easier in the future.
Pull Request #104: Fix S3 read/write performance issues

48 of 48 new or added lines in 4 files covered. (100.0%)

650 of 787 relevant lines covered (82.59%)

0.83 hits per line

Jobs
ID Job ID Ran Files Coverage
4 355.4 (TOX_ENV=coveralls AWS_SECRET_ACCESS_KEY=secret AWS_ACCESS_KEY_ID=key) 17 Jul 2019 05:04PM UTC 0
82.59
Travis Job 355.4
Source Files on build 355
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #355
  • Pull Request #104
  • PR Base - master (#352)
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