[Lazarus] TFilestream raises exception class 'External SIGSEGV'

JoshyFun joshyfun at gmail.com
Wed Apr 15 00:31:35 CEST 2009


Hello Dave,

Tuesday, April 14, 2009, 5:11:00 PM, you wrote:

>> In the other hand, use of a TFileStream to read byte by byte is
>> overkill.

DC> True, but I'm going through the file looking for a particular
DC> character $1B and assigning data to different dynamic arrays based on
DC> the byte following the <ESC> byte.

Anyway, use some kind of cache, each read operation involves a
complete read from disk (disk cache mostly) and a transition between
user mode to kernel mode and viceversa. Using a simple 4 Kb cache will
raise the performance 100 or 1000 times.

-- 
Best regards,
 JoshyFun




More information about the Lazarus mailing list