Comments (6)
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.
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.
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.
OOI, the URL for the dynamic end point has ?time=?time= ... I assume that this has no effect.
from lz-string.
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.
Allright, thanks for the feedback.
from lz-string.
Related Issues (20)
- Crash with large strings when running on Hermes (React Native)
- Is there a way to allow custom dictionaries? HOT 9
- How to realize that only specified characters are allowed to appear in the compression result? HOT 1
- LZ-String port to current typescript HOT 9
- Tag for v1.5.0 HOT 2
- Version 2 TODO list HOT 15
- Feature request: compress to source-compatible character set HOT 1
- New port for a linux executable HOT 1
- Can utf-8 codes be avoided in the output? HOT 10
- `decompressFromBase64` can return `null` HOT 7
- Docs: JSPerf.com links are no longer valid
- Docs: A Complete Demo for various compression/decompression HOT 3
- Docs: TSDoc HOT 3
- License Inconsistencies HOT 5
- Community Question: Breaking Changes and Version 2! HOT 10
- [email protected] build with warnings HOT 4
- Feature request: a non minified js file as a result of building v2 HOT 2
- Chrome virus warning with compressToEncodedURIComponent URL HOT 2
- CLI support for decompressing base64 encoded files HOT 1
- Please investigate the slow (irresponsible) LZString issue in Edge HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lz-string.