Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

fix: speed up invert of generated caip info #256

Merged
merged 1 commit into from
Nov 29, 2021
Merged

Conversation

mrnerdhair
Copy link
Contributor

This is, as far as I can tell, the biggest culprit in the Case of the Slow Page Load; the object allocation is high-overhead by itself, but the spread operator also gets transpiled down to use a babel shim that allocates extra temporary arrays of the intermediate objects' properties and loops over them.

@mrnerdhair mrnerdhair requested a review from a team as a code owner November 27, 2021 02:17
@0xdef1cafe
Copy link
Collaborator

my bad as i didn't intend this path to get hit at runtime, just generate, good catch

@mrnerdhair mrnerdhair merged commit b7d58e4 into main Nov 29, 2021
@mrnerdhair mrnerdhair deleted the speed-up-invert branch November 29, 2021 19:42
shapeshift-ci-bot pushed a commit that referenced this pull request Nov 29, 2021
# [@shapeshiftoss/caip-v1.4.2](https://github.com/shapeshift/lib/compare/@shapeshiftoss/caip-v1.4.1...@shapeshiftoss/caip-v1.4.2) (2021-11-29)

### Bug Fixes

* speed up invert of generated caip info ([#256](#256)) ([b7d58e4](b7d58e4))
@shapeshift-ci-bot
Copy link
Member

🎉 This PR is included in version @shapeshiftoss/caip-v1.4.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants