Git Product home page Git Product logo

Comments (2)

midichef avatar midichef commented on August 26, 2024

If this helps, I extracted a list of the important drawing calls to try to trace what was going on in editText(). But I ran out of steam.

editText():
  v = vd.editline(vd.activeSheet._scr, y, x, w, display=display, **kwargs)
  editline():
    disp_help = HelpCycler(scr, '')
    while True:
      disp_help.draw()
        vd.drawInputHelp(scr, '')
          curhelp = vd.getHelpPane('input', module='visidata')
          sheet.drawSidebarText(scr, curhelp, title='Input Keystrokes Help')
            sidebarscr = vd.subwindow(scr, x, y, w, h)   #(call this the A subwindow)
            text.draw(sidebarscr)  #(is actually curhelp.draw(sidebarscr) which is HelpPane.draw())
              #has lots of calls to:
              HelpPane.draw(vs.subwindow(scr))
                  #which makes a new B subwindow in the A subwindow:
                  vd.subwindow(scr of the new subwindow)
                  # and calls erase(), refresh() on its parent the A subwindow

from visidata.

midichef avatar midichef commented on August 26, 2024

Another related effect: some input prompts, like go-col-regex or go-col-number leads visidata's CPU usage to go up from 0% to a nonstop 20-30%. Surprisingly, search-col does not.

To reproduce: vd -N sample_data/sample.tsv, then go-col-regex and don't enter any characters.

This behavior started with the same commit, b859610.

That commit is dated Jan 14 so it's not the cause of #2243, which was reported Jan 9.

from visidata.

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.