????????????????????????????????????????ú???????1????????????????????????????????????? ????????????????????????????????????????????????????????????????????????????????????檔????????????????????????????? ????????diameterЭ????????????????????????????? ??Щ?????漰??????????????Щ??????????д?????????????
????Python?????????????????????????????????????????GIL?????????????? ????????????????????????????????python????????У???????????????????????? ????????????????????????????????????????????ЩС???????????ο? http://blog.csdn.net/powerccna/article/details/8020289
?????????????
???????????????diameter ???????? ????1000+????1000??????????2000???????? diameter Э???????????????????? http://sourceforge.net/projects/pyprotosim/?? ?????????????SMPP?? RADIUS?? DHCP?? LDAP??  ???????????Э????ζ???????dictionary???????????????????????????? ????????????????????????????????????????????????????????????????????50 ?????????????? SunFire 4170?? 16 ??????2.4 G
????Python????????????????
????1. ??python???????????????python????????pysco??pypy?? cython?? jython?? pysco?????python 2.7??????????в???????????C???????????pypy?? jython??????????pypy?????????????????5-10?????????Jython??????????python GIL?????????jython??????java??????????????????????Ч???????????
????2. ???????
????3. ????????????????????????Э??
????????1??  ??Python??????
?????????Python???????????????????????????????????????????κθ????????????????????pypy??Ч????????д??????????windows?????е???????linux???????????Ч???????Щ??
#!/usr/bin/env python
#coding=utf-8
import  time
def check(num):
a = list(str(num))
b = a[::-1]
if a == b:
return True
return False
def test():
all = xrange(1??10**7)
for i in all:
if check(i):
if check(i**2):
i**2
if __name__ == '__main__':
start=time.time()
test()
print time.time()-start
?????python??pypy?????н??
C:Python27python.exeD:/RCC/mp/src/test.py
14.4940001965
C:pypy-2.1pypy.exeD:/RCC/mp/src/test.py
4.37800002098
?????????????pypy?????н??Ч????????????????????5????linux?????????50*5?? ??2000???????? pypy??python ????????????????Ч?????????????????
????????????????????????????????????н?????????????????