- Dec 2, 2002
- 1,916
- 0
- 0
I wrote a program that I would like to speed up in two ways:
1. It reads data from a file, one line at a time, and based on what it reads it accesses a unique page at a certain site. This takes a long time, because there are 150 items of data in the file, so 150 connections have to be made. Is there anyway to speed this process up, possibly by making the connection more persistent?
2. Based on the data extracted from the web page it connects to, the program writes data in the format of an HTML table. However, the table is only displayed when the </TABLE> is written - after all the data is read. That means I can't see my results for a few minutes. A workaround for this is making each line its own table, instead of row of a larger table. However the columns end up unaligned.
Any solutions? Thanks.
1. It reads data from a file, one line at a time, and based on what it reads it accesses a unique page at a certain site. This takes a long time, because there are 150 items of data in the file, so 150 connections have to be made. Is there anyway to speed this process up, possibly by making the connection more persistent?
2. Based on the data extracted from the web page it connects to, the program writes data in the format of an HTML table. However, the table is only displayed when the </TABLE> is written - after all the data is read. That means I can't see my results for a few minutes. A workaround for this is making each line its own table, instead of row of a larger table. However the columns end up unaligned.
Any solutions? Thanks.