Coder Social home page Coder Social logo

Comments (3)

fabianfett avatar fabianfett commented on August 17, 2024 1

The swift-aws-lambda-runtime already supports a Foundation less mode today. You just need to import AWSLambdaRuntimeCore instead of AWSLambdaRuntime. AWSLambdaRuntimeCore does not depend on Foundation, and therefore has no own JSON encoding and decoding. You will need to bring your own JSON encoder and decoder in this case. swift-extras-json might be a good choice for that. 😉

However I doubt that we should make this the default case. Most Lambda runtime users, probably don't care at all about the minimal performance benefits you see when using an alternative json library. For those users the default Foundation implementation should just be there. Please keep in mind that alternative json libraries might have different behaviors around certain cases. For example: swift-extras-json does not have the special handling for Date and Data that users of the Foundation implementation might be expecting.

Given that we already support a Foundation less mode today, I think we can close this issue. WDYT? However we would be happy to accept PRs that improve the documentation around this.

A side not re swift-extras-json: The implementation has been lifted and shifted into Swift-Foundation with Swift 5.5, which has improved json performance significantly on Linux. However the issue with Swift-Foundation depending on icu remains.

from swift-aws-lambda-runtime.

stevapple avatar stevapple commented on August 17, 2024

I found swift-extras-json as some possible alternative, what do you think? @fabianfett

from swift-aws-lambda-runtime.

fabianfett avatar fabianfett commented on August 17, 2024

@stevapple Do you think we can close this?

from swift-aws-lambda-runtime.

Related Issues (20)

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.