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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T22:42:18+00:00 2026-06-02T22:42:18+00:00

I am having a performance issue with XDocument.Load(large_file.xml) , where it takes about 25

  • 0

I am having a performance issue with XDocument.Load("large_file.xml"), where it takes about 25 seconds to load the file.

I read in this question that using a binary format could offer up to a 10x performance increase.

What does a binary format look like? How do you go about converting an XML file to it?

  • 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-02T22:42:20+00:00Added an answer on June 2, 2026 at 10:42 pm

    Lets start with the implied question:

    Q: What is a Binary format?

    A: It is a format in which data is represented in a non-textual form. For example, a Java int might be represented as 4 bytes, rather than a sequence of decimal digits and a sign.

    Q: What does it look like?

    A: If you view it with a text editor / viewer, it looks like garbage.

    Q: How do you go about converting an XML file to a binary form?

    A: By hand. Since a binary format is essentially a format (any format) that is not text, there is no magical method of converting it.

    Q: How and why is a binary format faster?

    A: A binary format isn’t automatically faster to load than XML (or JSON). The idea is that you (the programmer) design a specific binary format for your application that will be faster to load. You typically do this by such things as:

    • avoiding the inclusion of verbose / repetitive structuring information (e.g. XML tag and attribute name),
    • using data encodings that require less CPU effort to turn into the in-memory representations,
    • avoiding the inclusion of unnecessary metadata,
    • avoiding things that require extra in-memory data copying,
    • and so on.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Opencart having performance issue and takes time to load when the number of category
I recall having read somewhere that it is better (in terms of performance) to
I'm having a WinForms performance issue that might be related to the fact that
I'm having a major performance issue with LINQ2SQL and transactions. My code does the
UPDATE: Problem located in my related question - Nokogiri performance problem I am having
I am having some performance issue of linq compiled query. using (var txn =
I'm having a performance issue with a select statement I'm executing. Here it is:
I'm having a performance issue. I've created an UIView and overwrited it's drawRect function.
I am having an issue executing this query. SELECT * FROM gob_attachment WHERE CONTAINS
I'm having a performance issue when deploying an app developed on 10g XE 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.