perl, python, parallel processing,fork
From Perl or python,Which language takes less overhead,less memory consumption and time开发者_开发知识库 while creating a process or parallel processing when sending or receiving a mail or messages? My client want to use any one technology perl or python?
Thanks in Advance
Which are you more familiar with? Use that! There would be minor differences in both for the conditions which you mention, but both would be slower than application written in compiled language such as C. But what you get is faster development time and ability to design using high level language features and libraries. So, the answer boils down to - use what are more familiar with.
I am pretty sure the bottom line of creating a process is defined by your OS. Python and Perl will both go down to system calls pretty quickly, so I wouldn't worry about that any much.
If your application has any size at all and you are not a Perl expert, then I suggest using Python. Your brain will hurt a lot less.
At this stage of development, you could also try to test the various languages. Create a benchmark and some prototypes and get a feel for the languages.
精彩评论