Re: [fpc-pascal] Heavy heap fragmentation issue

2019-06-04 Thread Martok
Am 03.06.2019 um 14:49 schrieb Marco van de Voort:
> Note that it is fairly typical that also frustrated pre fastmm D7. Back 
> then I wrote a simple pool-factory combo class for it, and with D2009 I 
> upgraded it to generics,so that I can easily create pools for many such 
> objects.
Well, there is a general-purpose pooled allocator already. It's called the heap
manager ;-)

Jokes aside, I did a bunch of counting. The only thing that sticks around are
50kB TLazIntfImage instances. Everything else gets freed right after processing.
Just from the order of alloc/frees, there shouldn't even be gaps, so I would
expect the next iteration to just find those allocations to be empty and reuse
them. But for some reason, that doesn't happen.

I've compiled with FastMM for now, but it turns out this is in fact a bit slower
than the RTL MM, and I don't really trust my port yet...


-- 
Regards,
Martok


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Using docker to build software

2019-06-04 Thread Michalis Kamburelis
Torsten Bonde Christiansen  wrote:

> Hi List.
>
> I am curious to know if there is someone out there that have tried to
> use Docker (https://www.docker.com) containers to build fpc applications?
>
> I have 3 applications in a suite that I am thinking of experimenting
> with, see if I can create an image containing eg. Ubuntu linux, FPC,
> Lazarus and dependencies.
>
> But if you have tried this before success or not, I would be glad to
> share thoughts and designs before I embark on my adventure.
>
>
We provide a Docker image as one option of compilation for Castle Game
Engine applications (it contains FPC with some cross-compilers, Lazarus,
CGE build tool, Android tools etc. ready). See
https://github.com/castle-engine/castle-engine/wiki/Docker and
https://hub.docker.com/r/kambi/castle-engine-cloud-builds-tools/ .

Best regards,
Michalis

>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal