GithubHelp home page GithubHelp logo

aws-s3-io's Introduction

AWS S3 IO Additions

This library contains additions to the AWS S3 SDK that help with I/O tasks.

Setup

Add the dependency com.hubject:aws-s3-io from Maven central to your project:

<dependecy>
    <groupId>com.hubject</groupId>
    <artifactId>aws-s3-io</groupId>
    <version>${hubject.aws-s3-io.version}</version>
</dependency>

Development

This project uses maven for dependency management and the build process. The typical commands work:

# compile and run unit tests
mvn clean test 

# install into local maven repository
mvn clean install

Usage

The manuals and examples for individual components are on separate pages:

aws-s3-io's People

Contributors

tmarsteel avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aws-s3-io's Issues

NoClassDefFoundError for BASE64Encoder with useChecksums = true

I am using Java 11 and getting the following exception if I use MD5KT/useChecksums=true when closing the S3OutputStream.kt:

java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder
at com.hubject.aws.s3.io.Md5Kt.toBase64(md5.kt:42) ~[task/:na]
at com.hubject.aws.s3.io.S3OutputStream.close(S3OutputStream.kt:187)

The JDK 11 replacement for sun.misc.BASE64Encoder is java.util.Base64.Encoder

Reduce allocations in SimpleByteBufferPool

Currently, if SimpleByteBufferPool receives two pop() calls with small size, followed only by calls with larger size, the smaller ones will not be re-used and larger ones will be allocated for every call to pop() and then de-allocated when free()d. This is excatly the behaviour ByteBufferPools try to avoid.

To enhance this, i suggest the following solution:
Keep a running average in of the minSize parameter for pop() invocations. When a buffer is free()d and there are buffers in reserve which are smaller than the average, drop the smallest in reserve and add the free()d buffer to the reserve (as opposed to keeping the smaller one and dropping the larger).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.