Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6808303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:56:20+00:00 2026-05-26T19:56:20+00:00

After some comments by David , I’ve decided to revise my question. The original

  • 0

After some comments by David, I’ve decided to revise my question. The original question can be found below as well as the newly revised question. I’m leaving the original question simply to have a history as to why this question was started.

Original Question (Setting LZMA properties for jslzma)

I’ve got some large json files I need to transfer with ajax. I’m currently using jQuery and $.getJSON(). I’d like to use the jslzma library to decompress the files upon receiving them. Currently, I’m using django with the pylzma library to compress the files.

The only problem is that there’s a lack of documentation for the jslzma library. There is some, but not enough. So I have two questions about how to use the library.

It gives this as an example:

LZMA.decompress(properties, inStream, outStream, outSize);

I know how to set the inStream and outStream variables, but not the properties or the outSize. So can anyone give an example(s) on how to set the properties variable (ie. what’s expected) and how to calculate the outSize…

Thanks.

Edit #1 (Revised Question)


I’m looking for a compression scheme that lends itself to highly repeatable data using python (django) and javascript.

The data being transferred contains elevation measurements. Each file has 1200×1200 data points, which equates to about 2.75MB in it’s raw binary form uncompressed. JSON balloons it to between 5-6MB. I’ve also looked into base64 (just to cover all the bases), which would reduce the size but I haven’t had any success reading it in js. I think the data lends itself to easy compression just because of the highly repeatable data values. For example, one file only has 83 unique elevation values to describe 1440000 data points.

I just haven’t had much luck, mainly because I’m just starting to learn JavaScript.

So can anyone suggest a compression scheme for this type of data? The goal is to minimize the transfer time by reducing the size for the data.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:56:20+00:00Added an answer on May 26, 2026 at 7:56 pm

    For what it’s worth LZMA is typically very slow to compress as well as decompress; and thus it is more common to use bit faster compression schemes. Standard GZIP (deflate) has reasonably good balance: its compression ratio is acceptable, and its compression speed is MUCH better than that of LZMA or bzip2.
    Also: most web servers and clients support automatic handling of gzip compression, which makes it even more convenient to use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After reading a couple of answers and comments on some SQL questions here, and
after some processing my program shows a messagebox saying you can read a log
after some confusion in the comments to Is it safe to have 1 letter
After making some comments , I've been inspired to get some feedback on the
After providing some answers here, and reading some comments, it would seem that, in
After some find and replace refactoring I ended up with this gem: const class
After some time I wanted to update my git repo, and then something went
After some stupid musings about Klingon languages, that came from this post I began
After some years of experience in the field, it seems to me that the
After some tweaking of some code I got from someone to cause a characters

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.