Skip to content

perf: auto-size columns without formatting every cell - #273

Merged
iamejaaz merged 8 commits into
frappe:masterfrom
iamejaaz:feat/exact-text-filter
Nov 22, 2026
Merged

iamejaaz merged 8 commits into
frappe:masterfrom
iamejaaz:feat/exact-text-filter

Conversation

@iamejaaz

@iamejaaz iamejaaz commented Nov 22, 2026 •

Copy link
Copy Markdown
Member
exact-text.mp4
  • Tables with many rows load about 3 times faster. Column auto-size now formats each distinct value once and measures only the 100 longest shown values, instead of measuring every value. Column widths stay the same as before

    Rows (10 columns) master This PR Faster
    10,000 148 ms 60 ms 2.5x
    50,000 1,038 ms 326 ms 3.2x
    100,000 2,203 ms 731 ms 3.0x
  • Typing = before text in an inline filter matches the whole cell, so =sales finds "Sales" but not "VAT on Sales". Number filters like =72000 work as before

  • In Frappe desk the row checkbox stays a 14px square in the centre of its column, and Check field columns keep their own alignment (fix: header line over scrolled rows and centered row checkbox #258 squeezed the checkbox and centred every cell holding a checkbox)

  • Moving between reports and then resizing the window no longer throws Cannot read properties of null (reading 'cssRules') (fix: 🐛 Always listen to window resize event #57 kept resize listeners of tables that were replaced)

  • =SKU004 also matches a cell shown as "SKU004: Smartphone", like the normal text filter does

  • Fixes a timing flake in the drag selection test

Closes #130
Closes #216

@iamejaaz iamejaaz changed the title feat: match the whole cell text with = in inline filters perf: auto-size columns without formatting every cell Nov 22, 2026
@iamejaaz
iamejaaz merged commit 4939ef5 into frappe:master Nov 22, 2026
2 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.27.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf: avoid copying entire data *somehow* feat: string exact match filter

1 participant