Skip to content

optim: don't getScriptSnapshot when we already have the snapshot#341

Merged
ezolenko merged 1 commit into
ezolenko:masterfrom
agilgur5:optim-snapshot
Jun 7, 2022
Merged

optim: don't getScriptSnapshot when we already have the snapshot#341
ezolenko merged 1 commit into
ezolenko:masterfrom
agilgur5:optim-snapshot

Conversation

@agilgur5

@agilgur5 agilgur5 commented Jun 4, 2022

Copy link
Copy Markdown
Collaborator

Summary

Tiny one-line optimization: getScriptSnapshot was called when we already have the snapshot

Details

- the snapshot is set above, so no need to get it
- also the snapshot from above is used below already, so this doesn't
  seem to be intentional
  - it originates from 2d33064 which
    similarly doesn't seem intentional
@agilgur5 agilgur5 added the kind: optimization Performance, space, size, etc improvement label Jun 4, 2022
@ezolenko ezolenko merged commit d8a8e42 into ezolenko:master Jun 7, 2022
@agilgur5 agilgur5 deleted the optim-snapshot branch July 2, 2023 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: optimization Performance, space, size, etc improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants