Hi all!
I need to parse and process a long files and need to extract single lines.
I implemented Onward- and Backward-Filereaders based on CfsFileDescriptor. Let's say,.. I'm not opening a file and create a CfsReadStream from it, I just work with the filepointers.
This implementation increased the performance from 1.5 hours to 8 to 12 minutes and the memory stays low,... wich is critical with my large files...
The PerformanceWorkbench show sme quite clearly that the usual substrings: method is also quite slow. I implemented my own one which just checks for Character cr, instead of checking for all seperators,... this brought me down to under 4 minutes.
But PerformanceWorkbench now still tells me that 37% of my time get's lost in the method Character cr.
I tried to check my chars beeing equal '
'
but this is answers "false" checking '
' = Character cr
Is there another way to find carriage returns in a String other than checking for Cr?
Thanks for ideas and help!
Sebastian