Skip to content

Slightly optimize bootstrap#1272

Merged
cyanzhong merged 1 commit intomainfrom
develop
Mar 10, 2026
Merged

Slightly optimize bootstrap#1272
cyanzhong merged 1 commit intomainfrom
develop

Conversation

@cyanzhong
Copy link
Contributor

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR makes small startup-time optimizations in the macOS app and reduces repeated work when generating the editor HTML payload.

Changes:

  • Reduce the delayed editor warm-up trigger from 1.0s to 0.5s after launch.
  • Cache the CoreEditor index.html content in EditorConfig to avoid re-reading it from disk on every toHtml call.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
MarkEditMac/Sources/Main/Application/AppDelegate.swift Triggers EditorReusePool warm-up sooner during app launch.
MarkEditCore/Sources/Extensions/EditorConfig+Extension.swift Caches index.html as a static value and updates toHtml to use it.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cyanzhong cyanzhong merged commit 8f3ed42 into main Mar 10, 2026
5 checks passed
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.

2 participants