Giter Club home page Giter Club logo

Comments (6)

pieroxy avatar pieroxy commented on July 24, 2024

My first guess is that the extra 10 seconds are spent outside the compression. Can you make a jsfiddle out of it so that I can see your code in action?

from lz-string.

micahlisonbee avatar micahlisonbee commented on July 24, 2024

I have a jsfiddle that grabs data from a source and then compresses it.

One of the URLS (static json file) compresses very quickly (< 1000ms).
The dynamic url compresses much slower (~7500ms).

Switch between the two URL variables to see the difference.

http://jsfiddle.net/theur7nd/2/

Thanks for your help.

from lz-string.

pieroxy avatar pieroxy commented on July 24, 2024

I've slightly modified your jsfiddle to add the size of the input: http://jsfiddle.net/u52ujty5/

What I see from my computer (Chromium - Linux) :

  • With dynamicEndPoint: Done in: 508 for 867331 bytes
  • With staticJSONFile: Done in: 507 for 785159 bytes

This looks pretty reasonable to me... Firefox exhibits the same behavior.

What is the config you're using? (OS/browser)

from lz-string.

rquadling avatar rquadling commented on July 24, 2024

OOI, the URL for the dynamic end point has ?time=?time= ... I assume that this has no effect.

from lz-string.

micahlisonbee avatar micahlisonbee commented on July 24, 2024

I see similar results now as well.

Thanks for your time on this. You know, our API team actually updated the dynamic response within the last few days and now instead of 30s, it's almost instant, I think when it was taking 30s to pull the response, that's when the compression was taking 10s longer, not sure why.

from lz-string.

pieroxy avatar pieroxy commented on July 24, 2024

Allright, thanks for the feedback.

from lz-string.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.