Re: [fpc-devel] TBufferedFileStream

2016-09-04 Thread Michael Van Canneyt
On Sun, 4 Sep 2016, José Mejuto wrote: El 04/09/2016 a las 14:04, Michael Van Canneyt escribió: The second powerful reason is that I was not aware about TBufStream :) It's even documented. http://www.freepascal.org/docs-html/current/fcl/bufstream/index.html Hello, Sure :) But I'm not

Re: [fpc-devel] TBufferedFileStream

2016-09-04 Thread José Mejuto
El 04/09/2016 a las 14:04, Michael Van Canneyt escribió: The second powerful reason is that I was not aware about TBufStream :) It's even documented. http://www.freepascal.org/docs-html/current/fcl/bufstream/index.html Hello, Sure :) But I'm not aware about all the gems in fpc code :)

Re: [fpc-devel] TBufferedFileStream

2016-09-04 Thread Michael Van Canneyt
On Sun, 4 Sep 2016, José Mejuto wrote: El 04/09/2016 a las 7:15, Michael Van Canneyt escribió: In the other hand a cache system is powerful than a buffered system if you are writing something like a filesystem over a TFileStream where you may need to jump here and there to read data, file

Re: [fpc-devel] TBufferedFileStream

2016-09-04 Thread José Mejuto
El 04/09/2016 a las 7:15, Michael Van Canneyt escribió: In the other hand a cache system is powerful than a buffered system if you are writing something like a filesystem over a TFileStream where you may need to jump here and there to read data, file allocation tables, attributes, and so on, in

Re: [fpc-devel] TBufferedFileStream

2016-09-03 Thread Michael Van Canneyt
On Sat, 3 Sep 2016, José Mejuto wrote: El 03/09/2016 a las 22:15, Michael Van Canneyt escribió: Added to the bugtracker implementation of TBufferedFileStream, there is one compatibility issue note in the bug entry. http://bugs.freepascal.org/view.php?id=30549 Nice. I have assigned this

Re: [fpc-devel] TBufferedFileStream

2016-09-03 Thread silvioprog
On Sat, Sep 3, 2016 at 10:58 PM, silvioprog wrote: [...] > ... under compressed files ... > Sorry, I meant "within compressed files". -- Silvio Clécio ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] TBufferedFileStream

2016-09-03 Thread silvioprog
On Sat, Sep 3, 2016 at 9:39 PM, José Mejuto wrote: > El 04/09/2016 a las 2:04, silvioprog escribió: > > If I understood right, did you create something like GIO or GVFS? Or >> neither of them hehe >> > > Hello, > > Yes and no :) It's something like GVFS but at your program

Re: [fpc-devel] TBufferedFileStream

2016-09-03 Thread José Mejuto
El 04/09/2016 a las 2:04, silvioprog escribió: If I understood right, did you create something like GIO or GVFS? Or neither of them hehe Hello, Yes and no :) It's something like GVFS but at your program level only. I originally develop it to be used in a forensic tool (which was not

Re: [fpc-devel] TBufferedFileStream

2016-09-03 Thread silvioprog
On Sat, Sep 3, 2016 at 8:20 PM, José Mejuto wrote: > El 04/09/2016 a las 0:23, silvioprog escribió: > > -- >> CACHE 100 byte sequential reads in 46 ms. >> FILE 100 byte sequential reads in 2200 ms. >>

Re: [fpc-devel] TBufferedFileStream

2016-09-03 Thread José Mejuto
El 04/09/2016 a las 0:23, silvioprog escribió: -- CACHE 100 byte sequential reads in 46 ms. FILE 100 byte sequential reads in 2200 ms. -- [...] Did you get this result from some

Re: [fpc-devel] TBufferedFileStream

2016-09-03 Thread silvioprog
On Sat, Sep 3, 2016 at 5:28 PM, José Mejuto wrote: [...] > ... Typical example is TFileStream.GetByte which I'm using in a parser, > because the file could be very big, and I don't want to read everything in > a TMemoryStream, performance of cache/buffered and regular is

Re: [fpc-devel] TBufferedFileStream

2016-09-03 Thread José Mejuto
El 03/09/2016 a las 22:15, Michael Van Canneyt escribió: Added to the bugtracker implementation of TBufferedFileStream, there is one compatibility issue note in the bug entry. http://bugs.freepascal.org/view.php?id=30549 Nice. I have assigned this to myself. Out of curiosity: Why do you

Re: [fpc-devel] TBufferedFileStream

2016-09-03 Thread Michael Van Canneyt
On Sat, 3 Sep 2016, José Mejuto wrote: Hello, Added to the bugtracker implementation of TBufferedFileStream, there is one compatibility issue note in the bug entry. http://bugs.freepascal.org/view.php?id=30549 Nice. I have assigned this to myself. Out of curiosity: Why do you think

[fpc-devel] TBufferedFileStream

2016-09-03 Thread José Mejuto
Hello, Added to the bugtracker implementation of TBufferedFileStream, there is one compatibility issue note in the bug entry. http://bugs.freepascal.org/view.php?id=30549 -- ___ fpc-devel maillist - fpc-devel@lists.freepascal.org