Re: [Wikitech-l] Compression with API

2015-11-30 Thread Antoine Musso
Le 30/11/2015 17:10, Petr Bena a écrit : > Hi, > > I created this ticket: https://phabricator.wikimedia.org/T119878 > > The basic idea is that it shouldn't be a big problem to compress > output of api.php script using some widely available library, like > gzip. > > That way the size of communica

Re: [Wikitech-l] Compression with API

2015-11-30 Thread Petr Bena
Interesting. I was googling for something like that, but for whatever reasons it just wasn't anywhere in the results... On Mon, Nov 30, 2015 at 5:12 PM, Brad Jorsch (Anomie) wrote: > On Mon, Nov 30, 2015 at 11:10 AM, Petr Bena wrote: > >> Is there any reason not to do that? >> > > That the HTTP

Re: [Wikitech-l] Compression with API

2015-11-30 Thread Dmitry Brant
> ...if there is some wiki-reader app that uses API for it to work. There is indeed[0], and it does! :) [0] https://play.google.com/store/apps/details?id=org.wikipedia&hl=en On Mon, Nov 30, 2015 at 11:11 AM, Petr Bena wrote: > Also, mobile phones would probably benefit from this most, if ther

Re: [Wikitech-l] Compression with API

2015-11-30 Thread Brad Jorsch (Anomie)
On Mon, Nov 30, 2015 at 11:10 AM, Petr Bena wrote: > Is there any reason not to do that? > That the HTTP Accept-Encoding header[1] already exists? [1]: https://tools.ietf.org/html/rfc7231#section-5.3.4 -- Brad Jorsch (Anomie) Senior Software Engineer Wikimedia Foundation ___

[Wikitech-l] Compression with API

2015-11-30 Thread Petr Bena
Hi, I created this ticket: https://phabricator.wikimedia.org/T119878 The basic idea is that it shouldn't be a big problem to compress output of api.php script using some widely available library, like gzip. That way the size of communication between client and server would be much smaller and us

Re: [Wikitech-l] Compression with API

2015-11-30 Thread Petr Bena
Also, mobile phones would probably benefit from this most, if there is some wiki-reader app that uses API for it to work. On Mon, Nov 30, 2015 at 5:10 PM, Petr Bena wrote: > Hi, > > I created this ticket: https://phabricator.wikimedia.org/T119878 > > The basic idea is that it shouldn't be a big p