Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Optimize console.js #2986

Merged
merged 2 commits into from
Apr 21, 2020
Merged

Conversation

nicholasjpaterno
Copy link
Contributor

O(1) lookups with Set vs Array.indexOf.

Aggregate consoleCommands in one reduce to eliminate the need to loop with filter then forEach.

Copy link
Contributor

@CruzMolina CruzMolina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

O(1) lookups with `Set` vs `Array.indexOf`.

Aggregate `consoleCommands` in one `reduce` to eliminate the need to loop with `filter` then `forEach`.
@nicholasjpaterno nicholasjpaterno force-pushed the nicholasjpaterno-patch-console.js branch from f52ceb7 to 925ac90 Compare April 21, 2020 03:05
@nicholasjpaterno nicholasjpaterno merged commit 39c610f into develop Apr 21, 2020
@nicholasjpaterno nicholasjpaterno deleted the nicholasjpaterno-patch-console.js branch April 21, 2020 14:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants