GithubHelp home page GithubHelp logo

Optimize package for lambda about google-ads-node HOT 6 OPEN

opteo avatar opteo commented on July 17, 2024
Optimize package for lambda

from google-ads-node.

Comments (6)

kritzware avatar kritzware commented on July 17, 2024 3

Hi @mledom , thanks for reporting this! This is an issue we're aware of, from our own usage with Netlify Functions (internally Lambda).

I'm going to dedicate a bit of time to look into this, and see if there is any optimisation we can do to lower the package size. I'll keep you updated 👍

from google-ads-node.

kritzware avatar kritzware commented on July 17, 2024 1

Hi @mledom , I've just merged in #18, which adds minification of the compiled protos directory. The details can be found in the PR writeup. Subsequently, we've released a new google-ads-node version, 1.12.1.

This is a good first step and brings down the package size significantly, but we think there is more we can do to bring the overall package size down. Stay tuned for more 👍

from google-ads-node.

sweetanalytics avatar sweetanalytics commented on July 17, 2024 1

@kritzware any progress or ideas on bringing the package size down? It looks like the bulk of it sits inside src and the large number of files in both v7 and v8. Protos folder is also quite large, but not comparable to the other two. Maybe a toned down version of the library (lite) or a way for developers to pick and choose which modules they install/use would be an interesting solution.

Screen Shot 2022-01-18 at 16 00 50

from google-ads-node.

kritzware avatar kritzware commented on July 17, 2024

An update on this: we've had some ideas on how we might be able to further reduce the package size, ranging from releasing a "google-ads-node-lite" (think of an alpine release), to compiling protos on the fly.

I'll make sure to keep this issue updated when we decide on our next steps.

from google-ads-node.

Zikoel avatar Zikoel commented on July 17, 2024

Hi @kritzware what do you mean with compiling protos on the fly ?

from google-ads-node.

hsource avatar hsource commented on July 17, 2024

@sweetanalytics See #99 for a solution - this is a problem with the upstream proto builder Google uses. I recommend using another proto builder and gRPC library on top of those protos

from google-ads-node.

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.