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

  • Home
  • SEARCH
  • 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 8815971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:30:25+00:00 2026-06-14T04:30:25+00:00

I wrote an application that accumulates data (a few MB/sec, but updated like 10

  • 0

I wrote an application that accumulates data (a few MB/sec, but updated like 10 times a second) and displays the current process in the browser via javascript.

The problem is that currently I write the data to file and load it with javascript, but this makes the application very laggy and people are complaining that their hdd is working a lot.

I would love to use some flags like “FILE_ATTRIBUTE_TEMPORARY” to tell my OS to not actually write the files to disk, but javascript requires me to close the file handle first (otherwise firefox couldn’t open it). Thus it will be written to disk at that point, killing the point in initially using that flag.

I thought about using something like a mysql database, but I really want to keep it as simple as possible, and I would prefer a solution that doesn’t force the user to set up some http or mysql server.

  • 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-14T04:30:27+00:00Added an answer on June 14, 2026 at 4:30 am

    Include a webserver in your standalone C++ application and serve the data directly from memory.

    I think that is the only option to avoid the I/O overhead which you are facing now. There is no interface to IPC, message queues or something similar in JS. TCP (or UDP, with websockets) seems to be the only possible way to avoid disk I/O. Another option would be to replace your JavaScript with a Browser Plugin which can access the capabilities of your operating system in native code.

    Note: In a UNIX environment, you can create a FIFO socket in the File System, which may (or may not) serve your purpose as well. I don’t think windows supports something like this, though.

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

Sidebar

Related Questions

I have a process that currently runs in a Delphi application that I wrote
I wrote simple application that send some data to my server. Somehow the data
I wrote an application that tried to create a default HBaseConfiguration, but when I
My friend wrote an application in .NET2.0. I'd like to install/use that application on
I wrote an application that inserts some data in a SQlite database using JDBC
I wrote an application in c# that can read srd files well, but now
I wrote web application that has few access levels / groups (not logged in,
I wrote a demo application that works perfectly on the simulator, but when I
So, I wrote a WPF application that takes in all sorts of data from
I wrote an application that re-hosts the Workflow 4 Designer (System.Activities.Presentation.WorkflowDesigner). Activities are discovered

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.