paulmouzas / puzzlenode

0 stars 1 forks source link

[p8] Try to parse input.json only once #1

Open practicingruby opened 10 years ago

practicingruby commented 10 years ago

It looks like you read the json file several times. You may be able to reduce duplication by parsing the tiles only once, then passing around an array or dictionary into each function that needs it, rather than reading the file many times.

Let me know if you have any questions about how to go about doing this!

practicingruby commented 10 years ago

@paulmouzas: Give this a shot, but if you get stuck let me know and I'll submit a pull request when I have time.