Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 31, 2016
1 parent edffef8 commit 47d559d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ Under `ES2015`, consider use `Map` or `Set` combined with `Symbol`.

Althought is more readable, not in all scenarios use a lookup table is better: The cost of create the lookup table could be higher tan use a set of if/else statements. So, it depends about your code running time:

- If you are going to be running short time (maybe just one execution, like building a CLI tool) use if/else.
- If you have to handle a set of conditions (maybe less than 3 could be a metric) or the code running life is short, use if/else.
- In other case use lookup table solution.

#### Memoizaton: Cache sucesive calls.
Expand Down

0 comments on commit 47d559d

Please sign in to comment.