Re[4]: [fpc-pascal] New object created in custom pool

2008-10-28 Thread JoshyFun
Hello Jonas, Tuesday, October 28, 2008, 4:58:04 PM, you wrote: JM> 100 bytes and smaller are most certainly handled using pools by FC's JM> heap manager. This code is partially inherited from a Delphi one, so the test has been performed a few months ago using D7, maybe the fpc behavior is better

Re: [fpc-pascal] fpimage glow effect

2008-10-28 Thread Graeme Geldenhuys
On Tue, Oct 28, 2008 at 8:41 PM, Mattias Gaertner <[EMAIL PROTECTED]> wrote: >> >> Currently, you can't, except setting pixels one by one. >> >> fpimage doesn't provide these 'higher-level' kind of effects (yet). > > Thanks. I will write a function. You might want to take a look at AGG-Pas as well

Re: [fpc-pascal] fpimage glow effect

2008-10-28 Thread Eduardo Morras
At 17:37 28/10/2008, you wrote: How can I create a glow effect around text with fpimage? DOn't know, you can check teh Vampyre project at http://imaginglib.sourceforge.net It's a image library for FreePascal/Lazarus written in ObjectPascal. Mattias HTH No virus found in this outgoing m

[fpc-pascal] A cross platform keydown and up

2008-10-28 Thread Joao Morais
Hello list, Is there a way to listen all keys of the keyboard, a la LCL's KeyDown and Up events, on a cross platform way and without the help of a framework (eg LCL)? Afaics Keyboard.GetKeyEvent doesn't recognize control keys (shift, ctrl, etc) as well as it doesn't recognize the 'up' part of a ke

Re: [fpc-pascal] fpimage glow effect

2008-10-28 Thread Mattias Gaertner
On Tue, 28 Oct 2008 19:07:23 +0100 (CET) Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > On Tue, 28 Oct 2008, Mattias Gärtner wrote: > > > How can I create a glow effect around text with fpimage? > > Currently, you can't, except setting pixels one by one. > > fpimage doesn't provide thes

Re: [fpc-pascal] fpimage glow effect

2008-10-28 Thread Michael Van Canneyt
On Tue, 28 Oct 2008, Mattias Gärtner wrote: > How can I create a glow effect around text with fpimage? Currently, you can't, except setting pixels one by one. fpimage doesn't provide these 'higher-level' kind of effects (yet). Michael.___ fpc-pascal

Re: [fpc-pascal] fpimage glow effect

2008-10-28 Thread Graeme Geldenhuys
On Tue, Oct 28, 2008 at 6:37 PM, Mattias Gärtner <[EMAIL PROTECTED]> wrote: > How can I create a glow effect around text with fpimage? Speaking purely from a graphics editor point of view like GIMP. You would need something like a Gaussian Blur filter to start, then overload the original text over

[fpc-pascal] fpimage glow effect

2008-10-28 Thread Mattias Gärtner
How can I create a glow effect around text with fpimage? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > And for Linux (Gnome and KDE) you are relying on 3rd party packages > that as far as I have found doesn't come standard with any Linux > distro I tried. Fedora had both in YUM iirc, though kchmviewer was flaky. But I'm not relying on them, they ar

Re: Re[2]: [fpc-pascal] New object created in custom pool

2008-10-28 Thread Jonas Maebe
On 28 Oct 2008, at 16:50, JoshyFun wrote: Hello Jonas, Tuesday, October 28, 2008, 4:24:56 PM, you wrote: My application will create thousands of small objects of the same class, this objects are not created or destroyed in a row, so memory fragmentation could becomes a serious problem aft

Re[2]: [fpc-pascal] New object created in custom pool

2008-10-28 Thread JoshyFun
Hello Vincent, Tuesday, October 28, 2008, 11:23:18 AM, you wrote: VS> You can override class function TObject.NewInstance : tobject; VS> For allocating the memory, you could use a special memory manager from pooledmm: VS> http://lazarus-ccr.sourceforge.net/docs/fcl/pooledmm/index-4.html Thank y

Re[2]: [fpc-pascal] New object created in custom pool

2008-10-28 Thread JoshyFun
Hello Jonas, Tuesday, October 28, 2008, 4:24:56 PM, you wrote: >>> My application will create thousands of small objects of the same >>> class, this objects are not created or destroyed in a row, so memory >>> fragmentation could becomes a serious problem after some time. >> Since the fpc heap ma

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Eduardo Morras
At 16:00 28/10/2008, you wrote: On Tue, Oct 28, 2008 at 4:26 PM, Eduardo Morras <[EMAIL PROTECTED]> wrote: > > Well, there are some ones. There is the PAQ family that are the best now. Of > course they are research compressors mostly written in C++ but they exist. > There is a freepascal/lazaru

Re: [fpc-pascal] New object created in custom pool

2008-10-28 Thread Jonas Maebe
On 28 Oct 2008, at 16:05, Florian Klaempfl wrote: JoshyFun schrieb: Hello FPC-Pascal, My application will create thousands of small objects of the same class, this objects are not created or destroyed in a row, so memory fragmentation could becomes a serious problem after some time. Since t

Re: [fpc-pascal] New object created in custom pool

2008-10-28 Thread Florian Klaempfl
JoshyFun schrieb: > Hello FPC-Pascal, > > My application will create thousands of small objects of the same > class, this objects are not created or destroyed in a row, so memory > fragmentation could becomes a serious problem after some time. Since the fpc heap manager itself pools, this should

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Graeme Geldenhuys
On Tue, Oct 28, 2008 at 4:26 PM, Eduardo Morras <[EMAIL PROTECTED]> wrote: > > Well, there are some ones. There is the PAQ family that are the best now. Of > course they are research compressors mostly written in C++ but they exist. > There is a freepascal/lazarus app that implements a GUI for this

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Graeme Geldenhuys
On Tue, Oct 28, 2008 at 4:15 PM, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > CHM has all that, and working code is in the tree now, so why bother? The > indexes and toc are several MB each too. (for CHM, they are XML, though you > could cook something up binary that is tighter. OTOH it will

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Luiz Americo Pereira Camara
Graeme Geldenhuys escreveu: I used Total Command 6.55 with the 7-zip plugin v0.4.6. Total Commander and the 7-zip plugin is written in Object Pascal (delphi). No dependencies on external libraries. I ran Total Commander under Linux by the way. For the latest version of the 7-zip plugin wi

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Graeme Geldenhuys
On Tue, Oct 28, 2008 at 4:00 PM, Jonas Maebe <[EMAIL PROTECTED]> wrote: > > You do have to decompress everything in the archive coming before it (but > nothing forces you, or TC, to store the decompressed but undesired data to > disk, obviously). That would normally make sense and how I understand

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Eduardo Morras
At 11:38 28/10/2008, you wrote: On Tue, Oct 28, 2008 at 12:12 PM, Eduardo Morras <[EMAIL PROTECTED]> wrote: > > In fact deflate/zip is 18-19 years old and there are lot of better > compression algorithm, like LZX. I think there is one implemented in Pascal > (ABC if memory don't fails). I'm stil

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > So far we are looking at the TZipFile component, but with zlib for a > start (and 7zip later) compression. Help file will be similar to > OpenOffice or CHM help. A compressed file with HTML and image content > and some index and toc files. CHM has

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Jonas Maebe
On 28 Oct 2008, at 14:55, Graeme Geldenhuys wrote: nd like I said, 7zip allows a single file to be unpacked from a solid archive. No need to unpack everything. I have verified that with Total Commander (TC) and the 7-zip plugin, otherwise 7-zip will not be an option for a help system. With TC

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Graeme Geldenhuys
On Tue, Oct 28, 2008 at 3:27 PM, Marco van de Voort <[EMAIL PROTECTED]> wrote: >> >> rtl with 7zip = 762KB >> fc with 7zip = 117KB > > But that is not a help system. It is a solid archive. If I have to depack > first it lasts a minute and contains 150MB on disk (first column) And like I said, 7zip

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Graeme Geldenhuys
On Tue, Oct 28, 2008 at 3:27 PM, Marco van de Voort <[EMAIL PROTECTED]> wrote: >> >> rtl with 7zip = 762KB >> fc with 7zip = 117KB > > But that is not a help system. It is a solid archive. If I have to depack > first it lasts a minute and contains 150MB on disk (first column) I archived the RTL an

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > > help packagesize on disk(k) real size(k) chm(k) > > rtl38816 22096 1865 > > lcl107404 72499 5227 > > fcl85485148445 > >

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Graeme Geldenhuys
> I used Total Command 6.55 with the 7-zip plugin v0.4.6. Total > Commander and the 7-zip plugin is written in Object Pascal (delphi). > No dependencies on external libraries. I ran Total Commander under > Linux by the way. For the latest version of the 7-zip plugin with source code. http://www.t

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Graeme Geldenhuys
On Tue, Oct 28, 2008 at 12:40 PM, Vincent Snijders <[EMAIL PROTECTED]> wrote: > > And at the same time, that is its weak point for packing a large number of > similar documents, like the LCL documentation. It only compresses one > document at a time, so it cannot use the information of previous doc

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Graeme Geldenhuys
On Mon, Oct 27, 2008 at 4:19 PM, Marco van de Voort <[EMAIL PROTECTED]> wrote: > html html > help packagesize on disk(k) real size(k) chm(k) > rtl38816 22096 1865 > lcl107404 72499 5227 > fcl

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > > In fact deflate/zip is 18-19 years old and there are lot of better > > compression algorithm, like LZX. I think there is one implemented in Pascal > > (ABC if memory don't fails). > > I'm still trying to find a compression algorithm that beats w

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Vincent Snijders
Graeme Geldenhuys schreef: The important thing for TZipFile component is that the archive format must compresses every file separately. Otherwise you can't extract a specific file without unpacking everything first. And at the same time, that is its weak point for packing a large number of sim

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Marco van de Voort
In our previous episode, Eduardo Morras said: > >entirely before use, contrary to either zip (in theory you could open the > >zip and extract only the one file) and chm (which has several indexes > >internally too, the unpacked chm is possibly larger than the html due to > >this) > > Don't know wh

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Graeme Geldenhuys
On Tue, Oct 28, 2008 at 12:12 PM, Eduardo Morras <[EMAIL PROTECTED]> wrote: > > In fact deflate/zip is 18-19 years old and there are lot of better > compression algorithm, like LZX. I think there is one implemented in Pascal > (ABC if memory don't fails). I'm still trying to find a compression alg

Re: [fpc-pascal] New object created in custom pool

2008-10-28 Thread Vincent Snijders
JoshyFun schreef: Hello FPC-Pascal, My application will create thousands of small objects of the same class, this objects are not created or destroyed in a row, so memory fragmentation could becomes a serious problem after some time. My question is: Is there any way to override the object creat

[fpc-pascal] New object created in custom pool

2008-10-28 Thread JoshyFun
Hello FPC-Pascal, My application will create thousands of small objects of the same class, this objects are not created or destroyed in a row, so memory fragmentation could becomes a serious problem after some time. My question is: Is there any way to override the object creation to use a specifi

Re: [fpc-pascal] helpsystem, some numbers

2008-10-28 Thread Eduardo Morras
At 07:01 28/10/2008, you wrote: On Mon, Oct 27, 2008 at 8:40 PM, Eduardo Morras <[EMAIL PROTECTED]> wrote: > > Don't know what's your question (perhaps you posted on wrong list) but chm > uses LZX compression algorithm internally. I was about to mention that as well. :-) I have always had the