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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:57:27+00:00 2026-05-22T18:57:27+00:00

In Mathematica, one can save intermediate results / the partial state of the workspace

  • 0

In Mathematica, one can save intermediate results / the partial state of the workspace with Save (.m files) or DumpSave (.mx files).

.m files are portable, but are very slow to load (with large data).

.mx files are fast to load, but are not portable between platforms/architectures.

Is there a way to save generic Mathematica expressions in a way that loading them is fast, and they’re portable between platforms? Has anyone experimented with / benchmarked different methods to do this?

One possible solution is to save .m files (cross-platform), then convert them to .mx files when starting work on a new platform (a one-time operation). Is there a fully automatic way to convert .m files to .mx files?

  • 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-22T18:57:28+00:00Added an answer on May 22, 2026 at 6:57 pm
    • From the posts Alexey linked:

      str=OpenWrite[file,BinaryFormat->True];
      
      BinaryWrite[str,Compress[expr],"TerminatedString"];
      
      Close[str];
      

      This is not quite as fast as using an mx file, but it is still very fast.

      David Bailey


      Another alternative seems to be WDX (Wolfram Data eXchange) which I am
      using without problems on a variety of machines and which also seems to
      be portable, can be used exactly like MX files, is binary, is documented
      and thus I would consider officially supported. And it is used by the
      data paclet functionality, so I guess it is reasonably performant and
      well tested on all systems (an assumption which my experience does
      support up to now).

      (excerpt from answer by Albert Retey, also from Alexey’s link)

    But these do not work as Save/DumpSave does, in that it does not save the FullDefinition of expr, only the explicit value of expr.

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

Sidebar

Related Questions

How can I get Mathematica to export/save/write a text file with proper Fortan77 formatting,
I am a new user of Mathematica and I can't figure out how to
I wonder if there exists way to work with large files in Mathematica ?
While trying to paste images, I noticed that Cases[] is very slow. To reproduce,
Ok this question is not exactly technical but very pertinent and current. If you
One of the hardest things for me to debug, is when Mathematica says that
When using blowfish algorithm from openssl library, one can encrypt and decrypt any data.
I'm using Mathematica 7 and with a combinatorica package function I can get all
May be some one has had similar experiences on this dilemma and can help
I have a very large table in Mathematica ((dimcub-1)^3 elements) coming from an inverse

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.