Hackfut Security File Manager
Current Path:
/usr/lib64/python2.6/site-packages/meld3
usr
/
lib64
/
python2.6
/
site-packages
/
meld3
/
📁
..
📄
__init__.py
(156 B)
📄
__init__.pyc
(334 B)
📄
__init__.pyo
(334 B)
📄
clearsilverprofile.py
(1.61 KB)
📄
clearsilverprofile.pyc
(2.13 KB)
📄
clearsilverprofile.pyo
(2.13 KB)
📄
cmeld3.so
(11.09 KB)
📄
example.py
(1.51 KB)
📄
example.pyc
(1.78 KB)
📄
example.pyo
(1.78 KB)
📄
meld3.py
(49.47 KB)
📄
meld3.pyc
(47.15 KB)
📄
meld3.pyo
(47.15 KB)
📄
melddiff.py
(620 B)
📄
melddiff.pyc
(999 B)
📄
melddiff.pyo
(999 B)
📄
meldprofile.py
(1.73 KB)
📄
meldprofile.pyc
(2.18 KB)
📄
meldprofile.pyo
(2.18 KB)
📄
test_getiterator.py
(1.21 KB)
📄
test_getiterator.pyc
(1.93 KB)
📄
test_getiterator.pyo
(1.93 KB)
📄
test_meld3.py
(60.62 KB)
📄
test_meld3.pyc
(62.33 KB)
📄
test_meld3.pyo
(62.33 KB)
📄
testclone.py
(1.3 KB)
📄
testclone.pyc
(1.5 KB)
📄
testclone.pyo
(1.5 KB)
📄
zptprofile.py
(1.93 KB)
📄
zptprofile.pyc
(3.37 KB)
📄
zptprofile.pyo
(3.37 KB)
Editing: testclone.py
import meld3 import time import timeit parent = meld3._MeldElementInterface('parent', {}) clonable = meld3._MeldElementInterface('root', {}) child1 = clonable.makeelement('child1', {}) child2 = clonable.makeelement('child2', {}) clonable.append(child1) child1.append(child2) for x in range(0, 10): new = child2.makeelement('tag%s'%x, {'x'+str(x):1}) child2.append(new) for x in range(0, 10): new = child1.makeelement('tag%s'%x, {'x'+str(x):1}) child1.append(new) NUM = 1000 def dotimeit(timer, name): repeat = 100 number = 100 result = timer.repeat(repeat, number) best = min(result) usec = best * 1e6 / number msec = usec / 1000 print "%s best of %d: %.*g msec per loop" % (name, repeat, 8, msec) t = timeit.Timer("meld3.chelper.clone(clonable, parent)", "from __main__ import meld3, clonable, parent") dotimeit(t, "C DF") t = timeit.Timer("meld3.chelper.bfclone(clonable, parent)", "from __main__ import meld3, clonable, parent") dotimeit(t, "C BF") t = timeit.Timer("meld3.pyhelper.clone(clonable, parent)", "from __main__ import meld3, clonable, parent") dotimeit(t, "Py DF") t = timeit.Timer("meld3.pyhelper.bfclone(clonable, parent)", "from __main__ import meld3, clonable, parent") dotimeit(t, "Py BF")
Upload File
Create Folder