question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some HeatMaps perform sluggishly

See original GitHub issue

The current HeatMap structure is heavy with lots of nested DOM nodes and applied styles. Thus pages with very large tables and/or pages with many heatmap tables are starting to perform sluggishly.

Things that may improve this:

  1. Drawer System - Replace nested Accordion UX with Drawer system (#89) is likely to help, as only the relevant tables need to be rendered at a given time. With current Collapsible accordion, all tables on a page are being rendered simultaneously.

  2. Optimizing HTML and CSS - Some of this complexity can’t be avoided, but It may be possible to reduce some of the markup by switching from a <table> structure to using <div>s. It may also be possible to make the CSS a bit faster by simplifying selectors and consolidating some of the nested structures into fewer elements.

  3. Rearchitect Crosshairs - Look at alternative architectures for how crosshairs and active cells are being rendered

  4. Rearchitect Tooltip - See https://github.com/allenai/allennlp-demo/issues/106#issuecomment-428722407


See related conversion on the Crosshairs/Tooltip PR that was merged into master on 10/10/2018.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
matt-gardnercommented, Oct 10, 2018

I wondered the same thing at first, which is why I dug into stuff like I did. After looking at this, I’m quite sure that a different tooltip solution won’t really solve anything. It’s not a significant source of slowness if there aren’t a whole lot of things rendered on the page, and if you remove it, things are still slow if you have a lot of things on the page. So I wouldn’t spend time trying to solve the tooltip issue.

0reactions
aaronsarnatcommented, Oct 10, 2018

You’ve convinced me that rendering just-in-time tables will move the needle the most, but if we are looking for every opportunity to optimize, I wonder if an alternative tooltip solution may also help. I started out with a homegrown solution, but it was broken in that it wasn’t smart enough to detect container and window boundaries, so it was getting cut off at the edges. The library I ended up using solved that immediate problem, but may prove to be too clunky when used at scale…

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Are Heat Maps? Guide to Heatmaps/How to Use Them
A complete guide to website heatmaps with chapters about creating and analyzing heatmaps, case studies, practical examples, and heatmap ...
Read more >
pyplot: really slow creating heatmaps - Stack Overflow
I have a loop that executes the body about 200 times. In each loop iteration, it does a sophisticated calculation, and then as...
Read more >
heatmap.2 has become very slow in plotting heatmap. - Biostars
I updated some packages yesterday and today when I run the script that calls heatmap.2 on a more than 1000x140 matrix it just...
Read more >
What is A Heatmap? The Complete Guide To Heat Maps - FigPii
A click heatmap is useful whenever you're trying to figure out why certain areas within your website don't perform well in conversions.
Read more >
Extremely slow Heatmap/Path map with single CSV as ...
Thank you. I will try using the extract. Part of the data within the data source is actually 'useless' (i.e. not used in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found