Coder Social home page Coder Social logo

Comments (10)

Zxilly avatar Zxilly commented on September 2, 2024

I test it on Linux and seems vendor packages cost 683 kb and standard library packages cost 2.23 mb.

from go-size-analyzer.

Zxilly avatar Zxilly commented on September 2, 2024

Maybe the rendered colours are a bit misleading, I would add different colours for different package types

from go-size-analyzer.

kishaningithub avatar kishaningithub commented on September 2, 2024

I thought the unknown sections size on the right hand side (coloured in light red) which is also like 2 MB was the standard lib. Is it not?

from go-size-analyzer.

Zxilly avatar Zxilly commented on September 2, 2024

Generally, unknown is meta information in the binary format itself, such as elf's section header and program header. but it's generally not that big, so if you can provide a sample of the binary file, I can do further analysis.

from go-size-analyzer.

kishaningithub avatar kishaningithub commented on September 2, 2024

@Zxilly Putting below all the information i can get including the binary file. Can you kindly re open this issue?

Zipped binary

tf-import-gen.zip

Size Screenshot

image

gsa version

$ gsa --version
gsa
  Version          v1.0.6
  Go Version       go1.22.3
  Platform         darwin/arm64

Screenshot of startup Warning message

level=WARN msg="Warning: disassembler not supported for this architecture"
image

from go-size-analyzer.

Zxilly avatar Zxilly commented on September 2, 2024

It does look like there are some issues with macos support, but I think I'd have a hard time fixing it, I work on amd64 on Windows/Linux and support for other architectures and systems is basically based on documentation rather than real experience.

image

I test the binary from the https://github.com/kishaningithub/tf-import-gen/releases/download/v0.8.0/tf-import-gen_0.8.0_linux_amd64.tar.gz and results looks better.

As you can see from the figure, the binary size can be reduced by about 6m after stripping the symbol and debug information.

from go-size-analyzer.

kishaningithub avatar kishaningithub commented on September 2, 2024

Will check the Linux version today.. Was curious to see how much size can be reduced without removing the debug and symbol table info

from go-size-analyzer.

kishaningithub avatar kishaningithub commented on September 2, 2024

Also I can definitely help out on testing and improving this tool for Mac os

from go-size-analyzer.

kishaningithub avatar kishaningithub commented on September 2, 2024

After removing the symbol table and debug information the compressed size went from ~3MB to ~1MB :-) screenshot and link below

https://github.com/kishaningithub/tf-import-gen/releases

Screenshot

image

from go-size-analyzer.

kishaningithub avatar kishaningithub commented on September 2, 2024

After the removal of debug information the size reported looks correct in macos x (screenshot below)

image

Closing this issue for now

from go-size-analyzer.

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.