Current Forum: Homework 5 - Part 3 |
Date: Sat Nov 17 2001 3:28 pm |
Author: Liu, Limin Angela <laliu@andrew.cmu.edu> |
Subject: Re: Saving and Restoring from disk takes very long |
|
|
Marc, I changed my implementation with ObjectInputStream and ObjectOutputStream into BufferedReader and BufferedWriter, and save my .save as a text file now.
When I test with WebCrawler http://web.mit.edu/ with 100 pages, it takes about 10 seconds (user+sys). I also tested with searching one to five keywords, and it takes about 2.5 seconds for all searches.
I think ObjectOutputStream is very fast for trie structure, but ObjectInputStream is not very efficient.
|
|