It may be expected... but I cannot be sure mind, don't have enough context. The add operation is binary, accepts two inputs, so you'll have to cascade it to run it over 10 grids, right? That puts a lot of pressure on the tile cache... it may well be that just adding a bit to the height makes the tile cache overflow and cause close to zero reuse of already computed tiles.
When using Jiffle I presume you're running a single call with 10 inputs instead, right? Did you increase the tile cache size? The default size is ridiculously small. In case this might be new to you, check how GeoServer does it here: https://github.com/geoserver/geoserver/blob/6e9e25c0c7cdda9ada9f33f8255130d3afc76801/src/main/src/main/java/org/geoserver/jai/JAIInitializer.java#L112 Cheers Andrea On Tue, Apr 16, 2019 at 9:57 AM Ian Turton <ijtur...@gmail.com> wrote: > While answering this question <https://gis.stackexchange.com/q/318813/79> on > gis.stackexchange, I ran into an odd result. I'm not sure if it is a bug or > not. > > If you are using `Operations.add` to sum a series of gridcoverages and all > the images are square (h==w) then for 10 grids of 4000x4000 it takes about > 5 seconds which is fine, if you make h=4001 the time jumps to 8000 seconds. > While if you are using Jiffle the time stays the same at about 10 seconds > for each size. > > Is this expected? or should I file a bug? > > Cheers > > Ian > > -- > Ian Turton > _______________________________________________ > GeoTools-GT2-Users mailing list > GeoTools-GT2-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > -- Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- *Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.*
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users