I’m trying to think of a good architecture for one of the items on my Oddmuse:Plans page:
Think about replacing the “slurp” access to the RC log files with a mechanism seeking from the end of the file.
The problem is that the array of raw log lines is an interface I’m using for several extensions. So that’s tricky. Using a callback is also tricky, because there’s filtering of log entries that has to be done, and there’s the rollback entries that are supposed to mask things that happened in the past. This seems to suggest an approach where you start reading the log files from the end. I’ll have to think about this some more...
#Oddmuse
(Please contact me if you want to remove your comment.)
⁂
Why not just read the logfile in as an array then reverse() it? Or is RC size an issue so an array isn’t practical?
– GreyWulf 2006-12-22 02:13 UTC
---
That’s still slurping. I think he wants random-access to the end of the file.
– AaronHawley 2006-12-22 05:25 UTC
---
Yeah, I need to conserve RAM or the process will get killed by the web server.
– Alex Schroeder 2006-12-22 09:26 UTC