Coder Social home page Coder Social logo

Xcode debug speed about xcode-kotlin HOT 8 CLOSED

LNeway avatar LNeway commented on May 31, 2024
Xcode debug speed

from xcode-kotlin.

Comments (8)

kpgalligan avatar kpgalligan commented on May 31, 2024 2

That's a long story. I don't think it'll ever be quite as fast, but as long as it's usable, that's a start. About a year and a half ago I took the stock python file and did a bunch of optimizations on it, then submitted that to Jetbrains. They took some of them, but not all. I need to fix the current issue, then see if there are any other optimizations that would make sense, but I want to be able to use the file provided by Jetbrains if possible, so we don't need to maintain a fork of it. We'll see.

from xcode-kotlin.

kpgalligan avatar kpgalligan commented on May 31, 2024

More detail? What's slow? What data is being displayed?

from xcode-kotlin.

LNeway avatar LNeway commented on May 31, 2024

xcode is slow to resolve vars and step by step debugging (just for Kotlin native code)

from xcode-kotlin.

kpgalligan avatar kpgalligan commented on May 31, 2024

from xcode-kotlin.

LNeway avatar LNeway commented on May 31, 2024

you can get the video by this link

they are complex instance

thanks

from xcode-kotlin.

kpgalligan avatar kpgalligan commented on May 31, 2024

Yeah, that's the old lldb formatter. I'll check into it, but they shouldn't show the summary string like that. That's the default out of the box from Kotlin/Native. It recursively walks the whole object graph, which is why it's slow. Not sure how the Xcode plugin has that version, but it's wrong.
debugger

For a quick fix, find konan_lldb.py and edit to_string to simply return "..." for the whole method.

https://github.com/touchlab/xcode-kotlin/blob/master/Kotlin.ideplugin/Contents/Resources/konan_lldb.py#L296

from xcode-kotlin.

LNeway avatar LNeway commented on May 31, 2024

thanks for you help

The speed increase is obvious ~

so what is the next improvement ? the debug speed is still slower than the Object C code

from xcode-kotlin.

kpgalligan avatar kpgalligan commented on May 31, 2024

closing this. We're going to be syncing our lldb script with the JB one more frequently going forward, and looking for ways to improve the step and data access speeds.

from xcode-kotlin.

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.