With an older application I made, I have some problems I can't really explain. It's a Voice response system for ISDN (T1/E1), which works fine, except for one thing.
When the system is very busy, it get's slow. (You can see by the delayed updating of the GUI on the screen, and the delayed voicetexts)
I think it is caused by the logfile the program keeps. Interesting events are logged in a logfile. If very busy, this could be 10 or 20 events a second.
The logfile is opened (for append) and closed on every event. This to make it easy to copy / delete the logfile periodically.
I thought that Windows 'shadows' the file in memory, and writes it to disk after a time-out. So I didn't think a lot of opening and closing would have any impact on the PC...
Can this indeed have a lot of impact, and is there a way to avoid / minimize this?
(Using PbWin 8.04 / W2KSP4)
When the system is very busy, it get's slow. (You can see by the delayed updating of the GUI on the screen, and the delayed voicetexts)
I think it is caused by the logfile the program keeps. Interesting events are logged in a logfile. If very busy, this could be 10 or 20 events a second.
The logfile is opened (for append) and closed on every event. This to make it easy to copy / delete the logfile periodically.
I thought that Windows 'shadows' the file in memory, and writes it to disk after a time-out. So I didn't think a lot of opening and closing would have any impact on the PC...
Can this indeed have a lot of impact, and is there a way to avoid / minimize this?
(Using PbWin 8.04 / W2KSP4)
Comment