top of page
Node4.PNG

Code

WebSpeed Search (WSS)

My role in this project was parsing the file system, creating the underlying data structure , and handling save / load functionality.


If you want to find out more about this program and less about code, click the button below.

WSS_1.PNG

I found the use of recursion here cleverly useful.

Using a hash map as a quick way to access data at constant time

WSS_2.PNG

Big Takeaway

If you a reading a file from disk, its far more efficient to hold onto the line and perform x # of .contains checks verses reading the line and checking it once, then later on reading the line and checking it again.

​

So opening a file and reading each line, over and over for all things you need is a lot more efficient, than opening the file and reading the line every time you need something. 

​

I was able to cut down a 8+ hour search to 12 minutes on a very large data set.

WSS_3.PNG

Get The Source

bottom of page