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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:30:16+00:00 2026-06-13T10:30:16+00:00

I use a third-party flash component (wrapped with Javascript) with my web application, from

  • 0

I use a third-party flash component (wrapped with Javascript) with my web application, from which I get comma-separated values and base64 data from it:

Get csv string as array function:

// Get the csv as array function
var buff = $wnd.MyFlashComp.getData();
var strBuff = buff.toString();
var arr = strBuff.split(',');

Get base64 data function:

// Get the data as base64 function
var buff64 = $wnd.MyFlashComp.getData64();

When I use buff64 and plug it in a HTML tag as base64 src data, the data is rendered properly in the browser, that is the page is still snappy. And I don’t see any performance issue with the page.

However, the function that gets the csv as array is very slow, and makes the page hang if not lag. The data I’m getting from flash range from 500KB to 1MB in size (max).

Is there a way to improve performance of this code?

  • 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-06-13T10:30:18+00:00Added an answer on June 13, 2026 at 10:30 am

    Assuming that the main issue is the split because you are splitting 1MB of data, and you are on an HTML5 compliant (or modern) browser because of the base64, why not try doing the split in a web worker.


    Or if not on an HTML5 browser, do some manual async loop (a looping setTimeout with 1ms delay) and string manipulation. Do this by chopping off a comma-separated portion of the string for every iteration until none is left.

    The setTimeout should aid you for a non-blocking operation, but I don’t know how long it takes to chop off the entire 1MB this way. And this is not really “async”. It just schedules the task per timeout so the operation won’t block the UI. Additionally, per iteration, you could do a “progress report” for a progress bar but checking how much of the 1MB is remaining.

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

Sidebar

Related Questions

I am trying to use third-party web service (php-based) in asp.net c# application, and
I need to use a third party .jar lib in my application: unfortunately the
Which approach is better: 1) to use a third-party ORM system or 2) manually
I'm new in Cocoa. My Application require to use third-party framework to be able
I have to use third party, unmanaged COM dll into my .NET application. I
I've written small console project which use third party dlls (example: HtmlAgilityPack or Newtonsoft.Json).
In my project I need to use third party code, stored in several Git
I have a (dump) question regarding VB/C# I often use third party classes where
We extensively use a third party app that we'll call thirdparty.com. thirdparty.com and mysite.com
I am trying to use a third party script and extract the logged in

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.