DataTables / DataTables/Plugins

SearchHighlight performance on large dataset

Open
#421 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Hi.

It seems, that change with columns highlight (https://github.com/DataTables/Plugins/pull/287) cause full highlights redraw for each column on table search, which lead to performance issue on large data set.

You can compare page freeze time on each key press in search field in previous and current plugin version.
Previous plugin version: https://jsfiddle.net/mqj9Lacf/
Current plugin version: https://jsfiddle.net/ckdhtLnv/6/

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the SearchHighlight plugin and compare the previous and current jsFiddle reproductions linked in the issue, measuring the freeze time for each search-field key press. Trace the highlighting work triggered by table search and determine whether the full redraw occurs once per column; done means large datasets no longer incur the reported repeated redraw performance problem.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
performance
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.