Ok - should I move the decompression code to its own file too?


On Fri, Nov 15, 2013 at 4:25 PM, Daniel Roberts <notifications@github.com>wrote:

> In corehq/apps/app_manager/templates/app_manager/import_app.html:
>
> > +                        w = wc;
> > +                    } else {
> > +                        result.push(dictionary[w]);
> > +                        // Add wc to the dictionary.
> > +                        dictionary[wc] = dictSize++;
> > +                        w = String(c);
> > +                    }
> > +                }
> > +
> > +                // Output the code for w.
> > +                if (w !== "") {
> > +                    result.push(dictionary[w]);
> > +                }
> > +                return result;
> > +            }
> > +        };
>
> This should absolutely be in its own file. If this works well, we'll use
> it in other places, since uploading is order of magnitude slower than
> downloading, esp. in poor connectivity places.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dimagi/commcare-hq/pull/1845/files#r7702888>
> .
>