Skip to content

perf: Skip File's constructor with a prototype class#12

Merged
kitten merged 1 commit intomainfrom
@kitten/perf/skip-file-constructor
Nov 27, 2025
Merged

perf: Skip File's constructor with a prototype class#12
kitten merged 1 commit intomainfrom
@kitten/perf/skip-file-constructor

Conversation

@kitten
Copy link
Copy Markdown
Owner

@kitten kitten commented Nov 27, 2025

Summary

Instantiating an entire Blob is pure overhead. We can skip the constructor and save ourselves the redundant allocation and time.

Set of changes

  • Replace File extends with prototype of File

@kitten kitten merged commit 8d7d4fe into main Nov 27, 2025
2 checks passed
@github-actions github-actions bot mentioned this pull request Nov 27, 2025
@kitten kitten deleted the @kitten/perf/skip-file-constructor branch February 16, 2026 03:25
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.

1 participant