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

feat(web): use wasm for justified layout calculation #15524

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

mertalev
Copy link
Contributor

Description

The current justified layout library does not scale well to larger date groups, especially ones larger than 10k assets. This PR introduces a new Wasm-based library featuring many performance tricks. The result is that the new library can process 10 million boxes in 48ms while the old library takes 26.7 minutes to process 1 million boxes.

@mertalev mertalev force-pushed the feat/justified-layout-wasm branch from 5b7e62b to b28d5f0 Compare January 23, 2025 04:46
web/src/lib/utils/timeline-util.ts Outdated Show resolved Hide resolved
web/vite.config.js Outdated Show resolved Hide resolved
Copy link
Contributor

@jrasm91 jrasm91 left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

2 participants