Skip to content

Conversation

@WebReflection
Copy link
Owner

There are at least two possible optimizations to do:

  • avoid break (reduce size)
  • avoid checking !map all over and just use an empty map

The first point is trivial, the second is clean but not obvious in terms of performance.

Keeping this open until I find a way to benchmark this against master.

@WebReflection
Copy link
Owner Author

on a second thought, creating a new Map when it's not needed doesn't seem like a possible improvement, so I'm happy with this.

@WebReflection WebReflection merged commit 0e29e3c into master Apr 4, 2020
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