3 ms·
well to level3 I can tell you, I just used grep embedded in a nodejs server application :D Everything boiled down to this: "cd " + data_path + "; grep -rno " +
by recentdarkness 13y ago
well to level3 I can tell you, I just used grep embedded in a nodejs server application :D
Everything boiled down to this:
"cd " + data_path + "; grep -rno " + key + " | cut -d: -f1,2 | sort | uniq"
I read the result from stdout and transformed the result into json that was enough to make it. I did not want at that time to spend more time on that level ;)
- mkaufmann 13y agoDamn ok, so I also missed that opportunity. Great find!
- recentdarkness 13y agoI forgot to add: I cached every result for every key which was searched for, because there was quite often that it asked 3-5 times for the same term in a row. So I had an instant result in a simple javascript object :D