Git Product home page Git Product logo

Comments (8)

leeoniya avatar leeoniya commented on July 4, 2024

maybe helpful: https://github.com/leeoniya/uPlot#performance

from shynet.

haaavk avatar haaavk commented on July 4, 2024

Do charts on home page have the same issues?
Server side rendering may cause long page load but not performance issues after.
Chart shouldn't be a problem too. It has the same amount of data no matter how much traffic you have.
My guess is too many things rendered into DOM. (For example to many locations or referrers)

from shynet.

sparanoid avatar sparanoid commented on July 4, 2024

Do charts on home page have the same issues?

Yeah you pointed it out. Charts on the home page are smooth as normal.

I removed the Location panel in the browser inspector, which had 10,000 nodes. This made the page back to normal. It appears that having too many HTML nodes was causing the issue.

image

from shynet.

haaavk avatar haaavk commented on July 4, 2024

It's still a problem. I think locations and referral should show max top 100 results.
@milesmcc What do you think?

from shynet.

sparanoid avatar sparanoid commented on July 4, 2024

A better way to handle large amounts of data is to retrieve it through an API and render it in the viewport dynamatically. But this would require a significant amount of refactoring.

from shynet.

milesmcc avatar milesmcc commented on July 4, 2024

I think we should show the top n for everything, rather than all... perhaps we add pagination somehow as well? That should really speed things up.

from shynet.

milesmcc avatar milesmcc commented on July 4, 2024

Would someone be able to submit a PR that does this? I'd merge quickly.

from shynet.

haaavk avatar haaavk commented on July 4, 2024

There can be a button to open paginated view with all results. Just like with sessions.
I can make PR tomorrow.

from shynet.

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.