These are chat archives for Exa-Networks/exabgp

9th
Jul 2015
Peng Xiao
@xiaopeng163
Jul 09 2015 09:03
is @classmethod classA.funA() faster than normal classA().funA() for a whole program view?
Thomas Mangin
@thomas-mangin
Jul 09 2015 09:12
I do not believe it makes much speed difference on call but it does not require an instance to be created therefore it will save on setup and memory
Thomas Mangin
@thomas-mangin
Jul 09 2015 16:02
@xiaopeng163 a quick test to see how it compares
conclusion, pypy rocks
on python, no much difference. on pypy classmethod are nearly as fast as non-class functions
That’s once you remove the class creation time which otherwise double the execution time.
Thomas Mangin
@thomas-mangin
Jul 09 2015 16:10
Yes, pypy rocks