SlackReading a book called
Slack by Tom DeMarco.
Very large text files processingIf you are dealing with very large text files, i.e. more than 500MB in size, here are a few tips that might help
- On windows, use Textpad for viewing/editing files. It handles large files very well. Alternatively you can use unix utilities or cygwin if you are working on windows.
- Java doesn't handle large files very well. Consider using Perl or unix shell script. You will be amazed at the performance gains.
- If you need to save this to a database, consider a direct bulk copy using your database's load utility e.g. sqlldr (oracle) or bcp(sybase, ms-sql).
Procrastinators logic: Cleaning your apartment is O(1) complexityN being the number of days since you last cleaned your apartment, for small N, the time taken, t, to clean your apartment will not vary much over N.
This makes apartment cleaning an O(1) complexity algorithm.
.