Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sped up highlighting on analysis page #1287

Merged
merged 2 commits into from
Dec 19, 2024
Merged

sped up highlighting on analysis page #1287

merged 2 commits into from
Dec 19, 2024

Conversation

jstucke
Copy link
Collaborator

@jstucke jstucke commented Oct 25, 2024

  • sped up highlighting on analysis page
    • optimized code
    • replaced custom line numbering function with much faster library
    • don't highlight if the block is too large (>1MiB)

@jstucke jstucke self-assigned this Oct 25, 2024
@jstucke jstucke force-pushed the highlighting-speedup branch 2 times, most recently from 257dfb3 to dc4efd9 Compare October 31, 2024 14:42
@jstucke jstucke force-pushed the highlighting-speedup branch from dc4efd9 to 4c178af Compare November 18, 2024 16:07
@codecov-commenter
Copy link

codecov-commenter commented Nov 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.90%. Comparing base (dc3216e) to head (4897fb3).
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1287      +/-   ##
==========================================
- Coverage   92.54%   91.90%   -0.65%     
==========================================
  Files         379      378       -1     
  Lines       24008    21096    -2912     
==========================================
- Hits        22219    19388    -2831     
+ Misses       1789     1708      -81     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jstucke jstucke force-pushed the highlighting-speedup branch from 4c178af to 835b1c9 Compare December 11, 2024 12:04
Copy link
Collaborator

@maringuu maringuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Just one commend below.

preview_button.onclick = load_preview;
let rawResultIsHighlighted = false;
const toggleSwitch = document.getElementById("rawResultSwitch");
const analysisTable = document.getElementById("analysis-table-body");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is null if no analysis is selected (by clicking on the file name).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. The variable analysisRows had the same problem

optimized code and replaced custom line numbering function with much faster lib
fixes the issue that the raw result is hidden by default but is considered for page height and scroll bar length nontheless
@jstucke jstucke force-pushed the highlighting-speedup branch from 835b1c9 to 4897fb3 Compare December 18, 2024 17:10
@maringuu maringuu merged commit 703a9dd into master Dec 19, 2024
10 checks passed
@maringuu maringuu deleted the highlighting-speedup branch December 19, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants