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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:13:45+00:00 2026-05-12T05:13:45+00:00

Dropping my lurker status to finally ask a question… I need to know how

  • 0

Dropping my lurker status to finally ask a question…

I need to know how I can improve on the performance of a PHP script that draws its data from XML files.

Some background:

  • I’ve already mapped the bottleneck to CPU – but want to optimize the script’s performance before taking a hit on processor costs. Specifically, the most CPU-consuming part of the script is the XML loading.

  • The reason I’m using XML to store object data because the data needs to be accessible via a browser Flash interface, and we want to provide fast user access in that area. The project is still in early stages though, so if best practice would be to abandon XML altogether, that would be a good answer too.

  • Lots of data: Currently plotting for roughly 100k objects, albeit usually small ones – and they must ALL be taken up into the script, with perhaps a few rare exceptions. The data set will only grow with time.

  • Frequent runs: Ideally, we’d run the script ~50k times an hour; realistically, we’d settle for ~1k/h runs. This coupled with data size makes performance optimization completely imperative.

  • Already taken an optimization step of making several runs on the same data rather than loading it for each run, but it’s still taking too long. The runs should generally use “fresh” data with the modifications done by users.

  • 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-12T05:13:45+00:00Added an answer on May 12, 2026 at 5:13 am

    Just to clarify: is the data you’re loading coming from XML files for processing in its current state and is it being modified before being sent to the Flash application?

    It looks like you’d be better off using a database to store your data and pushing out XML as needed rather than reading it in XML first; if building the XML files gets slow you could cache files as they’re generated in order to avoid redundant generation of the same file.

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

Sidebar

Related Questions

Does anybody know how I can delete the fading effect after dropping or sorting
How can I drop user from a database without dropping it's logging? The script
I have a TabControl that can be rearranged by dragging/dropping the tabs. The current
We're supporting legacy code that is dropping a cookie and setting the expiration to
how can i turn my listbox to resort able by dragging and dropping in
Does dropping a MySQL table automatically drop that table's indices too?
I am dropping a text snippet (from IE) from a web page, that might
How can I disable dropping of files on a System.Windows.Controls.WebBrowser? From the documentation it
How can I determine if an ETW session is dropping events? If it is
I want to allow dropping of image files in my application: Users can Drag

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.