GithubHelp home page GithubHelp logo

Comments (3)

joshwcomeau avatar joshwcomeau commented on August 26, 2024 1

React-Virtualized could help with this. The screenshot in the README shows that soft wrapping doesn’t occur, so how would each entry be of unknown height?

Each log entry is a DIV containing 1 or more lines:

screen shot 2018-07-20 at 9 02 13 am

We could probably work around this by splitting each log entry around newlines and sticking each one in its own div, so it's not unsolvable.

Also, I think I do want the output to line-wrap; the reason it doesn't right now is I couldn't find a quick way to wrap lines and preserve whitespace (as seen in the URL portion of the screenshot above, whitespace is often used for positioning, and things don't align nicely with the default behaviour of reducing multiple whitespace chars into a single one). Although linewrapping might also break some layouts... so I'm actually not sure what the best approach there is.

For now, I think having a "clear" button (#57) will solve the immediate need, so I'm removing the "top priority" label.

from guppy.

joshwcomeau avatar joshwcomeau commented on August 26, 2024

Setting this as "top priority" because Guppy becomes unusably slow after moderate usage with the current logging.

from guppy.

j-f1 avatar j-f1 commented on August 26, 2024

Another slightly trickier solution could be to virtualize the offscreen content (tricky since each log entry is of unknown height).

React-Virtualized could help with this. The screenshot in the README shows that soft wrapping doesn’t occur, so how would each entry be of unknown height?

from guppy.

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.