question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it necessary to load all temporary files into memory? (onefile mode, windows)

See original GitHub issue
  • Nuitka version, full Python version, flavor, OS, etc.:

    0.7.6
    Commercial: None
    Python: 3.10.3 (tags/v3.10.3:a342a49, Mar 16 2022, 12:53:06) [MSC v.1929 32 bit (Intel)]
    Flavor: Unknown
    Executable: D:\Python\Python310-32\python.exe
    OS: Windows
    Arch: x86
    WindowsRelease: 10
    
  • How did you install Nuitka and Python pip without virtualenv and python from python.org

  • Issue/Question When running the Nuitka onefile mode compiled executable, all files (identical to the contents of the *.dist directory) are extracted to a temporary directory. Is it necessary to have all those files also loaded into memory?

    Maybe this is not really a problem for projects with small *.dist directory sizes. However, if the size is large enough (e.g. > 500 MB) of course it will greatly increase the memory usage. Tested on Windows 8.1, 10, and 11.

Thank you.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, Apr 4, 2022

This is part of the current pre-release and will be in 0.8 release.

0reactions
kayhayencommented, May 20, 2022

Part of 0.8 release that I just made.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Temporary Files hogging my memory - Microsoft Community
Type Disk in Cortana Search and click Disk Cleanup. Another way to do this is through Storage Sense. Type Storage in Cortana >...
Read more >
Using Spec Files - PyInstaller
Clean PyInstaller cache and remove temporary files before building. ... Applicable only to onedir mode; in onefile mode, the manifest is always embedded, ......
Read more >
Python tempfile module - GeeksforGeeks
First, we have to import tempfile then the file is created using the TemporaryFile() function. The file is opened in w+b (both read...
Read more >
File system - Wikipedia
In computing, file system or filesystem (often abbreviated to fs) is a method and data structure that the operating system uses to control...
Read more >
The Python tempfile Module - Stack Abuse
Temporary files, or "tempfiles", are mainly used to store intermediate information on disk for an application. These files are normally created ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found