Coder Social home page Coder Social logo

Potential optimizations about zld HOT 4 CLOSED

michaeleisel avatar michaeleisel commented on May 25, 2024
Potential optimizations

from zld.

Comments (4)

michaeleisel avatar michaeleisel commented on May 25, 2024 1

Yes, binary size increase is a downside. But the CPU cost of a larger binary size (e.g., due to more page faults) may generally compensated for by the linker being faster. I think we can let consumers test that for themselves.

Besides size, it seems like Objective-C and C++ exceptions use compact unwind info, but Swift does not. Also, if an Objective-C method throws and unwinds into a Swift context, Swift still doesn't need compact unwind info. So for a pure Swift project like @kastiglione is working with, it indeed seems fine. Then there's that article, which discusses backtrace being unsuitable for crash reporting, and so needing compact unwind info. But since this is a debug build, that's not as much of a concern anyways

from zld.

michaeleisel avatar michaeleisel commented on May 25, 2024 1

Closing, will resume discussion in #7

from zld.

michaeleisel avatar michaeleisel commented on May 25, 2024

-no_deduplicate is a good one. For Xcode, the default is to add -no_deduplicate for Debug but to deduplicate for Release.

-no_compact_unwind seems a little more interesting. I'm not sure it's really language-specific, I believe it's helping at the assembly level to backtrace, a la https://www.mikeash.com/pyblog/friday-qa-2012-04-27-plcrashreporter-and-unwinding-the-stack-with-dwarf.html . I'd like to understand the exact situations in which it can be a drawback to use flag (although it definitely seems good for debug in general)

from zld.

bjorn3 avatar bjorn3 commented on May 25, 2024

I'd like to understand the exact situations in which it can be a drawback to use flag

It increases the size of the binary.

from zld.

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.