#1 2017-07-18 06:56:15

g00gle
Member
Registered: 2016-10-24
Posts: 8

Brotli Compression

Hi Ab,
Do you have in plans add support for brotli compression algorithm ?

Offline

#2 2017-07-18 07:07:12

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Brotli Compression

No plan yet, since we already use SynLZ on production since years, with good ratio of performance/compression.
SynLZ  idea was to have something much faster for compression than Zip, not the absolute best (even if it is very good).

Brotli is probably better, but not in orders of magnitudes, so it is not worth it breaking the existing...
The fact that we have SynLZ implemented too in "pure pascal" is a major advantage in respect to Brotli/Snappy, which requires linking external C code.

Offline

#3 2017-07-18 09:51:26

emk
Member
Registered: 2013-10-24
Posts: 96

Re: Brotli Compression

SynLZ "pure pascal" is cross-platform compatible? In near future I'll want to use it on iOS and Android apps connected to mORMot server.
Thank you.

Offline

#4 2017-07-18 12:11:06

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Brotli Compression

Yes, its pure pascal version runs on all platforms, even on all exotic FPC targets.
But it is not yet supported by the cross-platform version of mORMot clients for Delphi.

Offline

#5 2017-07-19 11:15:11

emk
Member
Registered: 2013-10-24
Posts: 96

Re: Brotli Compression

So, any info what compression to use between iOS/Android and mORMot server?
In my iOS/Android app I have SQLite db contaning a subset of main Firebird db and sometimes when sync is needed, a bulk transfer is happening which will benefit from compression.

Thank you.

Offline

#6 2017-07-19 12:22:35

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Brotli Compression

Regular GZIP compression at HTTP level could do just fine.

Offline

#7 2017-07-24 02:14:35

keinn
Member
Registered: 2014-10-20
Posts: 103

Re: Brotli Compression

is there any plan to make the mORMot framework's Client Parts  support the Android/IOS in Delphi FireMonkey?

Offline

#8 2017-07-24 07:56:34

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Brotli Compression

Android/IOS in Delphi FireMonkey is supported since years via the CrossPlatform clients.
See https://synopse.info/files/html/Synopse … DE_TITL_86

There is no plan to make the main framework units compatible with NextGen, due to the major compatibility break of the ARC memory manager, and the missing RawByteString support (at least before 10.1 Berlin).
We don't have time, nor need for that.
We focus on FPC for true cross-platform support.
See https://synopse.info/forum/viewtopic.ph … 136#p20136

Anyone is welcome willing to help, and patch/debug the main framework for NextGen. But is there even a way to detect memory leaks under ARC?

Offline

Board footer

Powered by FluxBB