Hello Paraxial, and welcome to the Monastery!
Since you will need the data from all the logs up to an hour old, you don’t really need a binary search. Just read the file backwards until the latest record read is more than an hour old. I haven’t used it, but the module File::ReadBackwards is designed for just this task:
This module reads a file backwards line by line. It is simple to use, memory efficient and fast. ...
It is intended for processing log and other similar text files which typically have their newest entries appended to them.
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: Binary Search Timestamps
by Athanasius
in thread Binary Search Timestamps
by Paraxial
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |