Skip to content

perf: use type-utils for desktopCapturer.getSources() result serialization - #23549

Merged
alexeykuzmin merged 1 commit into
masterfrom
miniak/get-sources-perf
May 13, 2020
Merged

alexeykuzmin merged 1 commit into
masterfrom
miniak/get-sources-perf

Conversation

@miniak

@miniak miniak commented May 13, 2020 •

Copy link
Copy Markdown
Contributor

Description of Change

Avoids compressing to / decompressing from PNG (nativeImage.toDataURL() / nativeImage.createFromDataURL()) when sending NativeImage instances over IPC.

On my machine it saves around 10-20% of time when calling desktopCapturer.getSources(), depending on the thumbnailSize.

Checklist

  • PR description included and stakeholders cc'd
  • npm test passes
  • PR title follows semantic commit guidelines

Release Notes

Notes: no-notes

@miniak miniak self-assigned this May 13, 2020
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label May 13, 2020
@miniak
miniak requested a review from zcbenz May 13, 2020 00:43
@miniak
miniak requested a review from codebytere May 13, 2020 01:01
@alexeykuzmin
alexeykuzmin merged commit 85fae67 into master May 13, 2020
@release-clerk

release-clerk Bot commented May 13, 2020

Copy link
Copy Markdown

No Release Notes

@alexeykuzmin
alexeykuzmin deleted the miniak/get-sources-perf branch May 13, 2020 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-pr 🌱 PR opened recently

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants