Giter Club home page Giter Club logo

Comments (6)

wmodes avatar wmodes commented on August 19, 2024

I thought it might be a large block of ChangeLog notes that I kept in comment form in the file, but it wasn't that. I also thought I might have a tricky hanging bracket or quote that was making the file difficult, but it appears not.

It also appears to not be purely an issue of length, as I pasted in half of the text of Pride and Prejudice and noted only a small slow down. With the entire book, typing was considerably slower.

It appears that there are processes that happen after every keystroke whose rapidity is affected by the length/complexity of the text. That might be worth looking at, changing to a less frequent update, or only after a user has stopped typing for a period.

Would it help to try my source file?

from inform.

erkyrath avatar erkyrath commented on August 19, 2024

We noted on the forum that this only happens when syntax coloring is turned on.

Further profiling (thanks ArdiMaster, https://intfiction.org/t/inform7-ide-slow-editing/49086/22 ) indicates that a whole lot of time is spent in updateTextTouchBarItems. The problem is only observable on MacBook Pros with touchbar.

See screenshot:

a7242fb4e8ce58920a7bae20d66e83478ba475dd_2_1380x862

from inform.

erkyrath avatar erkyrath commented on August 19, 2024

I'm pretty sure that the real problem is that when syntax coloring is on, the view's redisplay method is being called thousands of times per keystroke. The touchbar call itself is only marginally slow (a few milliseconds), but because it's called way too often, it beats the CPU to death.

from inform.

weaversam8 avatar weaversam8 commented on August 19, 2024

For additional feedback, I'm running "Version 1.68 (1.68.1)" on Big Sur (11.6) on an M1 Mac Mini and also encountering slow editing. My device doesn't have a touchbar, but there are still large lags on every keystroke, even on small files like the Onyx example.

from inform.

TobyLobster avatar TobyLobster commented on August 19, 2024

For a possible workaround in the latest version v1.82 (v10.1.2), see #28 (comment)

from inform.

TobyLobster avatar TobyLobster commented on August 19, 2024

This should be fixed now.

from inform.

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.