[Freeswitch-users] Python vs LUA

Anton VG anton.vazir at gmail.com
Wed Apr 27 10:35:53 MSD 2011


Hello!
Cannot get answer for myself for languages processing overhead/preference,

I personally would like to use Python for scripting under Freeswitch,
but considering some recent list activity about low CPS while using
python scripts, etc
querstioning, maybe it's better to use LUA instead? WIKI or list does
not answer this questions in satisfying manner unfortunatelly. For DB
intensive scripts - DB connections pool is a very important stuff,
having direct influence performance and CPS specifically.

It looks that lua might be lighter and more tightly integrated to FS,
but if processing overhead difference is just a few times python is
still preferred for me (and many others) since much more
powerfull/libraryreach/etc.
I'ts would be just nice to clear this question.

1. Is there any comparisions on plain processing overhead?
2. Any data on memory consumtption per active python process?
2. Is there a freeswitch DB pool connection interface like for LUA in
mod_python?
3. If not - what would be the known technique to use external DB
connection pool from inside the FS python script?
4. Seems logical, but please confirm/reject - once executed (compiled
to the bytecode) - the second time the python script under FS will be
executed as precompiled bytecode?

Regards,
Anton.



More information about the FreeSWITCH-users mailing list