FACN3 / mashrou_ghazal

project autocomplet
http://tiny.cc/MashrouGhazal
Apache License 2.0
1 stars 0 forks source link

reading the words.txt file every time you go to handler #48

Open shiryz opened 6 years ago

shiryz commented 6 years ago

this line will run on every call of handler.js, this is not the way to go, your dictionary file needs to be read once and only once when you start your server, you can do this by creating a function and exporting it, that function should be called from your router, check #47 first