Skip to content

Bloated Ruby files #174

Description

@dnesteryuk

I understand that you generate this client, but if you check memory which is needed to load your gem with

bundle exec derailed bundle:mem

See for more details of the derailed command. You will get this:

  xero-ruby: 30.25 MiB
    xero-ruby/api/accounting_api: 6.7891 MiB
    xero-ruby/api/payroll_uk_api: 2.3203 MiB
    xero-ruby/api/payroll_nz_api: 1.2891 MiB
    xero-ruby/api_client: 0.7734 MiB

Just one accounting_api.rb needs almost 7 Mb!

Our project uses lots of other gem, but xero-ruby is the most expensive. For example, Rails:

rails/all: 17.9023 MiB

Rails has way more features and it is lighter.

Can we do something with this, guys? Thanks. 🙂

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions