Giter Site home page Giter Site logo

win-py-spawner's Introduction

win-py-spawner

Simple, minimalistic exe that runs sibling py script for windows.

Story

Starting process on Windows is slow: http://stackoverflow.com/questions/47845/why-is-creating-a-new-process-more-expensive-on-windows-than-linux

Some scripts that work (acceptably) well in Unix-like system are really slow on windows. Some of them are python scripts evecuted via:

#!/usr/bin/env python

Which in some cases evaluates to 3 processes:

  • sh
  • env
  • final python

This script allows you directly execute python runtime.

Usage:

$ ls -
win-py-spawner.exe # this program
foo.py             # the script
$ cp win-py-spawner.exe foo.exe
$ ./foo.exe          # loads python runtime and executes foo.py directly withing sheband/usr/bin env etc.

If you suspect that exe is an compiled win-py-spawner, you can use only-and-only one option "--win-py-spawner-help" that shows this readme file contents.

Why

Yes, it saves only < 10% of real time. But that may be enough in some cases.

May be usable also if you have "editor" written in python and need Windows easily associate some filetype with this editor. At least on old windowses you could associate document only with EXE files.

win-py-spawner's People

Contributors

zbigg avatar

Watchers

Bartosz Taudul avatar James Cloos avatar Krzysztof Maliński avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.