Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does using a virtual environment influence the performance of a web app?

I have a django app up and running. I never encountered any performance problems, though the app is hosted on a shared hosting platform.

The provider asked my recently to use python's virtualenv. Since then the performance has been really bad, though I can't detect the change in CPU usage or any other statistic.

So my question is: does using a virtual environment influence the performance? If yes, how?

like image 618
LarsVegas Avatar asked Jun 01 '13 09:06

LarsVegas


People also ask

What is advantages of using virtual environment?

Portability. It's possible to seamlessly move VMs across virtual environments and even from one physical server to another, with minimal input on the part of IT teams. VMs are isolated from one another and have their own virtual hardware, making them hardware-independent.

Are virtual environments important?

Importance of Virtual EnvironmentsAs your project portfolio grows, managing package dependencies becomes more important. Jumping from one project to another means different libraries used for various purposes and the need for version adjustment to ensure compatability.

What is a virtual environment and why is it useful?

A virtual environment is a tool that helps to keep dependencies required by different projects separate by creating isolated python virtual environments for them. This is one of the most important tools that most of the Python developers use.

What happens when you activate a virtual environment?

Activating a virtual environment Before you can start installing or using packages in your virtual environment you'll need to activate it. Activating a virtual environment will put the virtual environment-specific python and pip executables into your shell's PATH .


1 Answers

Nope, it doesnt infuence the performance. Basically all what it do is changing python path to the virtualenvs ones. So there shouldn`t be any difference with performance.

like image 89
Aldarund Avatar answered Oct 05 '22 23:10

Aldarund