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 6068773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:45:03+00:00 2026-05-23T09:45:03+00:00

I have a 1024×1024 double matrix (i.e. 8mb array) which I need to use

  • 0

I have a 1024×1024 double matrix (i.e. 8mb array) which I need to use in a javascript app.

I found that using sylvester is quite useful for manipulating my matrix. My problem right now is simply to find an efficient way to load this array into a web page.

It seems quite tedious loading binary data into javascript. I thought using images as a mean of transfer but it seems quite tedious too…

For the record, it is a numpy ndarray, so I can play around with the format fairly easily from Python.

Thanks.

Edit: Right now I am dumping my raw array as a string and parsing it with the Binary Parser by JSFromHell but it’s really, quite, slow…

  • 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-23T09:45:03+00:00Added an answer on May 23, 2026 at 9:45 am

    The best way would be the binary-capable XMLHttpRequest, see https://developer.mozilla.org/En/Using_XMLHttpRequest#Receiving_binary_data_using_JavaScript_typed_arrays. You could load the data directly into a Float64Array and it would be really fast. The downside: the spec wasn’t finalized until recently (as you can see, Firefox 4/5 implements one approach while Firefox 6 will use another) and it is only implemented by Firefox and Chrome so far (with Chrome working the same as Firefox 6). So if performance is really important you could use this approach when possible (XMLHttpRequest has responseType or mozResponseArrayBuffer property) and fall back to the slow code otherwise. The hope would be that most people update their browsers soon and take the fast route.

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

Sidebar

Related Questions

In Javascript. I have a map of the world that is 1024 x 1024px
I have a large array with 1024 entries that have 7 bit values in
I need to have a static void* array[1024]; in a library and i need
i have a 1024 x 1024 image I use for a texture in my
I have a 128-byte (1024-bit) modulus (in a byte array format) and my exponent
If I have an mssql varchar[1024] that is always empty in a table, how
I have an array of ints like this: [32,128,1024,2048,4096] Given a specific value, I
How can I have a vb6 program which opens correctly in 1280*1024 but when
I have a table that has a large string key (varchar(1024)) that I was
I have checked the offical site of android and found that the Android3.0 supported

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.