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

perf(edgeless): slice first block rendering to multiple parts #6992

Conversation

doouding
Copy link
Member

@doouding doouding commented May 8, 2024

Change

  • split first blocks rendering into multiple parts
  • move edgeless label update logic into edgeless-index-label component
  • remove unecessary code from portal
  • simplify layer zIndex property

Copy link

vercel bot commented May 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blocksuite ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 14, 2024 8:46am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
blocksuite-docs ⬜️ Ignored (Inspect) Visit Preview May 14, 2024 8:46am

Copy link

graphite-app bot commented May 8, 2024

Your org has enabled the Graphite merge queue for merging into master

Add the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Member Author

doouding commented May 8, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @doouding and the rest of your teammates on Graphite Graphite

@doouding doouding force-pushed the 05-08-perf_edgeless_only_render_blocks_in_the_current_viewport branch from 1f15fb2 to 24a1dcc Compare May 10, 2024 08:47
@doouding doouding changed the title perf(edgeless): only render blocks in the current viewport perf(edgeless): s May 10, 2024
@doouding doouding changed the title perf(edgeless): s perf(edgeless): slice first block rendering to multiple parts May 10, 2024
@doouding doouding marked this pull request as ready for review May 10, 2024 09:21
@@ -56,6 +52,7 @@ const portalMap = new Map<EdgelessBlockType | RegExp, string>([
export class EdgelessBlockPortalContainer extends WithDisposable(
ShadowlessElement
) {
static RENDER_STEP = 5;
Copy link
Member

Choose a reason for hiding this comment

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

Comment needed to elaborate the step-based rendering strategy

element?: HTMLElement
): T {
export function requestThrottledConnectFrame<
// eslint-disable-next-line
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of disable eslint, you should disable a specific rule

Copy link

graphite-app bot commented May 14, 2024

Merge activity

### Change
- split first blocks rendering into multiple parts
- move edgeless label update logic into `edgeless-index-label` component
- remove unecessary code from portal
- simplify layer `zIndex` property
@doouding doouding force-pushed the 05-08-perf_edgeless_only_render_blocks_in_the_current_viewport branch from e048a99 to 4a88de7 Compare May 14, 2024 08:40
@graphite-app graphite-app bot merged commit 4a88de7 into master May 14, 2024
19 checks passed
@graphite-app graphite-app bot deleted the 05-08-perf_edgeless_only_render_blocks_in_the_current_viewport branch May 14, 2024 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants