dedupe icon indicating copy to clipboard operation
dedupe copied to clipboard

Multiprocessing in later version not working properly

Open monicatao opened this issue 7 years ago • 10 comments

Hi, I upgraded the library and ran gazette but it's getting much slower than the previous versions. I found it started to get slower since from version 1.9.7. And the function it's slower is dedupe.core.scoreGazette.

I compared the GitHub from 1.9.6 and 1.9.7 and cannot tell the reason why it's happening.

After some investigation, I think it might be the multiprocessing in the later version is not working properly. I tried it with both multiprocessing and no multiprocessing and running no multiprocessing is even faster than the current one with multiprocessing.

Could you help investigate this? Thank you!!

monicatao avatar Aug 20 '19 06:08 monicatao

can you use profiling (https://docs.python.org/3/library/profile.html) to provide data on the speed difference and where the difference is

On Tue, Aug 20, 2019 at 1:13 AM monicatao [email protected] wrote:

Hi, I upgraded the library and ran gazette but it's getting much slower than the previous versions. I found it started to get slower since from version 1.9.7. And the function it's slower is dedupe.core.scoreGazette.

I compared the GitHub from 1.9.6 and 1.9.7 and cannot tell the reason why it's happening.

After some investigation, I think it might be the multiprocessing in the later version is not working properly. I tried it with both multiprocessing and no multiprocessing and running no multiprocessing is even faster than the current one with multiprocessing.

Could you help investigate this? Thank you!!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dedupeio/dedupe/issues/772?email_source=notifications&email_token=AAEDC3IFXBR45IVJYI3ARIDQFODPTA5CNFSM4INPOT62YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HGE3TLQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEDC3IUCIAVBVJGODSR4QLQFODPTANCNFSM4INPOT6Q .

fgregg avatar Aug 20 '19 12:08 fgregg

can you use profiling (https://docs.python.org/3/library/profile.html) to provide data on the speed difference and where the difference is … On Tue, Aug 20, 2019 at 1:13 AM monicatao @.***> wrote: Hi, I upgraded the library and ran gazette but it's getting much slower than the previous versions. I found it started to get slower since from version 1.9.7. And the function it's slower is dedupe.core.scoreGazette. I compared the GitHub from 1.9.6 and 1.9.7 and cannot tell the reason why it's happening. After some investigation, I think it might be the multiprocessing in the later version is not working properly. I tried it with both multiprocessing and no multiprocessing and running no multiprocessing is even faster than the current one with multiprocessing. Could you help investigate this? Thank you!! — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#772?email_source=notifications&email_token=AAEDC3IFXBR45IVJYI3ARIDQFODPTA5CNFSM4INPOT62YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HGE3TLQ>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEDC3IUCIAVBVJGODSR4QLQFODPTANCNFSM4INPOT6Q .

I run this code: gazetteer.match(data_d, threshold=threshold, n_matches=None) And here is the return when I run under dedupe 1.9.9:

82396 function calls in 71.917 seconds Ordered by: standard name ncalls tottime percall cumtime percall filename:lineno(function) 16 0.000 0.000 0.000 0.000 :1009(_handle_fromlist) 16 0.000 0.000 0.000 0.000 :416(parent) 1 0.003 0.003 71.916 71.916 :1() 1 0.000 0.000 0.000 0.000 init.py:1011(flush) 1 0.000 0.000 0.000 0.000 init.py:1022(emit) 1 0.000 0.000 0.000 0.000 init.py:117(getLevelName) 1 0.000 0.000 0.000 0.000 init.py:1361(debug) 1 0.000 0.000 0.000 0.000 init.py:1373(info) 1 0.000 0.000 0.000 0.000 init.py:1451(findCaller) 1 0.000 0.000 0.000 0.000 init.py:1481(makeRecord) 1 0.000 0.000 0.000 0.000 init.py:1496(_log) 1 0.000 0.000 0.000 0.000 init.py:1521(handle) 1 0.000 0.000 0.000 0.000 init.py:154() 1 0.000 0.000 0.000 0.000 init.py:1575(callHandlers) 2 0.000 0.000 0.000 0.000 init.py:1619(isEnabledFor) 8 0.000 0.000 0.000 0.000 init.py:212(_acquireLock) 8 0.000 0.000 0.000 0.000 init.py:221(_releaseLock) 16 0.001 0.000 0.004 0.000 init.py:253(_at_fork_weak_calls) 8 0.000 0.000 0.000 0.000 init.py:264(_before_at_fork_weak_calls) 1 0.000 0.000 0.000 0.000 init.py:266(viewitems) 8 0.000 0.000 0.003 0.000 init.py:268(_after_at_fork_weak_calls) 1 0.000 0.000 0.000 0.000 init.py:293(init) 1 0.000 0.000 0.000 0.000 init.py:371(getMessage) 1 0.000 0.000 0.000 0.000 init.py:429(usesTime) 1 0.000 0.000 0.000 0.000 init.py:432(format) 1 0.000 0.000 0.000 0.000 init.py:584(usesTime) 1 0.000 0.000 0.000 0.000 init.py:590(formatMessage) 1 0.000 0.000 0.000 0.000 init.py:606(format) 2 0.000 0.000 0.000 0.000 init.py:747(filter) 50 0.000 0.000 0.000 0.000 init.py:849(acquire) 50 0.000 0.000 0.001 0.000 init.py:856(release) 1 0.000 0.000 0.000 0.000 init.py:869(format) 1 0.000 0.000 0.000 0.000 init.py:892(handle) 2754 0.021 0.000 0.027 0.000 _internal.py:395(_newnames) 16 0.000 0.000 0.000 0.000 _weakrefset.py:16(init) 16 0.000 0.000 0.000 0.000 _weakrefset.py:20(enter) 16 0.000 0.000 0.000 0.000 _weakrefset.py:26(exit) 11 0.000 0.000 0.000 0.000 _weakrefset.py:38(_remove) 16 0.000 0.000 0.000 0.000 _weakrefset.py:52(_commit_removals) 112 0.001 0.000 0.002 0.000 _weakrefset.py:58(iter) 11 0.000 0.000 0.000 0.000 _weakrefset.py:81(add) 1 0.002 0.002 71.913 71.913 api.py:1014(match) 2279 0.006 0.000 71.911 0.032 api.py:1044() 1 0.000 0.000 0.000 0.000 api.py:401(_blockedPairs) 1 0.000 0.000 0.000 0.000 api.py:415() 1 0.000 0.000 0.000 0.000 api.py:419(_blockGenerator) 20 0.000 0.000 0.000 0.000 api.py:421() 1 0.000 0.000 0.000 0.000 api.py:435() 1 0.000 0.000 0.000 0.000 api.py:456(_checkBlock) 1 0.000 0.000 0.000 0.000 api.py:956(_blockData) 1 0.000 0.000 0.001 0.001 api.py:983(matchBlocks) 8 0.000 0.000 0.000 0.000 base.py:5(len) 20 0.000 0.000 0.000 0.000 blocking.py:34(call) 1 0.000 0.000 0.000 0.000 blocking.py:37() 2755 0.013 0.000 71.904 0.026 clustering.py:215(gazetteMatching) 4 0.000 0.000 0.000 0.000 connection.py:117(init) 4 0.000 0.000 0.000 0.000 connection.py:130(del) 1 0.000 0.000 0.000 0.000 connection.py:134(_check_closed) 1 0.000 0.000 0.000 0.000 connection.py:142(_check_writable) 1 0.000 0.000 0.000 0.000 connection.py:181(send_bytes) 4 0.000 0.000 0.000 0.000 connection.py:360(_close) 1 0.000 0.000 0.000 0.000 connection.py:365(_send) 1 0.000 0.000 0.000 0.000 connection.py:390(_send_bytes) 2 0.000 0.000 0.000 0.000 connection.py:506(Pipe) 2 0.000 0.000 0.000 0.000 context.py:109(SimpleQueue) 1 0.000 0.000 0.030 0.030 context.py:114(Pool) 6 0.000 0.000 0.000 0.000 context.py:186(get_context) 4 0.000 0.000 0.000 0.000 context.py:196(get_start_method) 1 0.000 0.000 0.000 0.000 context.py:232(get_context) 8 0.000 0.000 0.021 0.003 context.py:274(_Popen) 4 0.000 0.000 0.000 0.000 context.py:64(Lock) 1 0.000 0.000 0.000 0.000 core.py:305(init) 2755 0.007 0.000 71.800 0.026 core.py:340(scoreGazette) 1 0.000 0.000 0.030 0.030 core.py:363(appropriate_imap) 2 0.000 0.000 0.000 0.000 core.py:384(peek) 2 0.000 0.000 0.000 0.000 datamodel.py:115(check) 2 0.000 0.000 0.000 0.000 datamodel.py:43(_field_comparators) 1 0.000 0.000 0.000 0.000 genericpath.py:117(_splitext) 8 0.000 0.000 0.001 0.000 pool.py:152(Process) 1 0.000 0.000 0.030 0.030 pool.py:155(init) 1 0.001 0.001 0.028 0.028 pool.py:227(_repopulate_pool) 1 0.000 0.000 0.000 0.000 pool.py:250(_setup_queues) 1 0.000 0.000 0.000 0.000 pool.py:327(imap_unordered) 1 0.000 0.000 0.000 0.000 pool.py:538(close) 1 0.000 0.000 0.105 0.105 pool.py:550(join) 1 0.000 0.000 0.000 0.000 pool.py:562(_help_stuff_finish) 1 0.000 0.000 0.000 0.000 pool.py:571(_terminate_pool) 1 0.000 0.000 0.000 0.000 pool.py:717(init) 1 0.000 0.000 0.000 0.000 pool.py:727(iter) 2755 0.031 0.000 71.658 0.026 pool.py:730(next) 8 0.000 0.000 0.019 0.002 popen_fork.py:16(init) 308 0.001 0.000 0.039 0.000 popen_fork.py:25(poll) 8 0.000 0.000 0.037 0.005 popen_fork.py:41(wait) 8 0.001 0.000 0.018 0.002 popen_fork.py:67(_launch) 1 0.000 0.000 0.000 0.000 posixpath.py:121(splitext) 1 0.000 0.000 0.000 0.000 posixpath.py:144(basename) 1 0.000 0.000 0.000 0.000 posixpath.py:41(_get_sep) 1 0.000 0.000 0.000 0.000 posixpath.py:52(normcase) 2 0.000 0.000 0.000 0.000 predicates.py:296(call) 2 0.000 0.000 0.000 0.000 predicates.py:297() 2 0.000 0.000 0.000 0.000 predicates.py:299() 2 0.000 0.000 0.000 0.000 predicates.py:31(strip_punc) 2 0.000 0.000 0.000 0.000 predicates.py:398(commonSixGram) 2 0.000 0.000 0.000 0.000 predicates.py:73(call) 2 0.000 0.000 0.000 0.000 predicates.py:88(func) 2 0.000 0.000 0.000 0.000 predicates.py:95(call) 8 0.001 0.000 0.026 0.003 process.py:101(start) 8 0.000 0.000 0.037 0.005 process.py:133(join) 8 0.000 0.000 0.000 0.000 process.py:144(is_alive) 9 0.000 0.000 0.000 0.000 process.py:180(name) 8 0.000 0.000 0.000 0.000 process.py:184(name) 8 0.000 0.000 0.000 0.000 process.py:196(daemon) 8 0.000 0.000 0.000 0.000 process.py:215(exitcode) 5 0.000 0.000 0.000 0.000 process.py:36(current_process) 8 0.002 0.000 0.004 0.001 process.py:53(_cleanup) 8 0.001 0.000 0.001 0.000 process.py:72(init) 16 0.000 0.000 0.000 0.000 process.py:85() 32 0.000 0.000 0.000 0.000 process.py:90(_check_closed) 2770 0.009 0.000 0.021 0.000 pydev_import_hook.py:16(do_import) 2 0.000 0.000 0.000 0.000 queues.py:330(init) 1 0.000 0.000 0.000 0.000 queues.py:356(put) 32 0.000 0.000 0.000 0.000 random.py:224(_randbelow) 32 0.000 0.000 0.000 0.000 random.py:256(choice) 1 0.000 0.000 0.000 0.000 reduction.py:38(init) 1 0.000 0.000 0.000 0.000 reduction.py:48(dumps) 4 0.000 0.000 0.000 0.000 synchronize.py:114(_make_name) 4 0.000 0.000 0.000 0.000 synchronize.py:161(init) 4 0.000 0.000 0.000 0.000 synchronize.py:50(init) 4 0.000 0.000 0.000 0.000 synchronize.py:90(_make_methods) 1 0.000 0.000 0.000 0.000 synchronize.py:94(enter) 1 0.000 0.000 0.000 0.000 synchronize.py:97(exit) 4 0.000 0.000 0.000 0.000 tempfile.py:142(rng) 4 0.000 0.000 0.000 0.000 tempfile.py:153(next) 4 0.000 0.000 0.000 0.000 tempfile.py:156() 6 0.000 0.000 0.069 0.011 threading.py:1000(join) 6 0.000 0.000 0.069 0.011 threading.py:1038(_wait_for_tstate_lock) 1 0.000 0.000 0.000 0.000 threading.py:1052(name) 2 0.000 0.000 0.000 0.000 threading.py:1080(is_alive) 3 0.000 0.000 0.000 0.000 threading.py:1096(daemon) 3 0.000 0.000 0.000 0.000 threading.py:1112(daemon) 13 0.000 0.000 0.000 0.000 threading.py:1206(current_thread) 4 0.000 0.000 0.000 0.000 threading.py:216(init) 2758 0.002 0.000 0.003 0.000 threading.py:240(enter) 2758 0.003 0.000 0.003 0.000 threading.py:243(exit) 2574 0.002 0.000 0.002 0.000 threading.py:249(_release_save) 2574 0.003 0.000 0.006 0.000 threading.py:252(_acquire_restore) 2574 0.002 0.000 0.003 0.000 threading.py:255(_is_owned) 2574 0.020 0.000 71.618 0.028 threading.py:264(wait) 3 0.000 0.000 0.000 0.000 threading.py:499(init) 12 0.000 0.000 0.000 0.000 threading.py:507(is_set) 3 0.000 0.000 0.001 0.000 threading.py:534(wait) 3 0.000 0.000 0.000 0.000 threading.py:728(_newname) 3 0.000 0.000 0.000 0.000 threading.py:758(init) 3 0.000 0.000 0.001 0.000 threading.py:829(start) 3 0.000 0.000 0.000 0.000 threading.py:968(_stop) 4 0.000 0.000 0.000 0.000 util.py:136(register_after_fork) 9 0.001 0.000 0.001 0.000 util.py:151(init) 9 0.000 0.000 0.000 0.000 util.py:170(call) 8 0.000 0.000 0.001 0.000 util.py:398(_flush_std_streams) 9 0.000 0.000 0.000 0.000 util.py:44(sub_debug) 22 0.000 0.000 0.000 0.000 util.py:48(debug) 4 0.000 0.000 0.000 0.000 weakref.py:109(remove) 4 0.000 0.000 0.000 0.000 weakref.py:165(setitem) 4 0.000 0.000 0.000 0.000 weakref.py:334(new) 4 0.000 0.000 0.000 0.000 weakref.py:339(init) 4 0.000 0.000 0.000 0.000 {built-in method new of type object at 0x10150f830} 1 0.000 0.000 0.000 0.000 {built-in method _struct.pack} 2578 0.003 0.000 0.003 0.000 {built-in method _thread.allocate_lock} 14 0.000 0.000 0.000 0.000 {built-in method _thread.get_ident} 3 0.000 0.000 0.000 0.000 {built-in method _thread.start_new_thread} 4 0.000 0.000 0.000 0.000 {built-in method _weakref._remove_dead_weakref} 2770 0.011 0.000 0.012 0.000 {built-in method builtins.import} 1 0.000 0.000 71.917 71.917 {built-in method builtins.exec} 101 0.000 0.000 0.000 0.000 {built-in method builtins.getattr} 21 0.000 0.000 0.000 0.000 {built-in method builtins.hasattr} 4 0.000 0.000 0.000 0.000 {built-in method builtins.id} 5520 0.002 0.000 0.002 0.000 {built-in method builtins.isinstance} 2800 0.001 0.000 0.001 0.000 {built-in method builtins.len} 28 0.000 0.000 0.001 0.000 {built-in method builtins.next} 2 0.000 0.000 0.000 0.000 {built-in method dedupe.cpredicates.ngrams} 8 0.000 0.000 0.000 0.000 {built-in method posix.WEXITSTATUS} 8 0.000 0.000 0.000 0.000 {built-in method posix.WIFEXITED} 8 0.000 0.000 0.000 0.000 {built-in method posix.WIFSIGNALED} 20 0.000 0.000 0.000 0.000 {built-in method posix.close} 8 0.013 0.002 0.017 0.002 {built-in method posix.fork} 3 0.000 0.000 0.000 0.000 {built-in method posix.fspath} 55 0.000 0.000 0.000 0.000 {built-in method posix.getpid} 10 0.000 0.000 0.000 0.000 {built-in method posix.pipe} 292 0.038 0.000 0.038 0.000 {built-in method posix.waitpid} 1 0.000 0.000 0.000 0.000 {built-in method posix.write} 1 0.000 0.000 0.000 0.000 {built-in method sys._getframe} 1 0.000 0.000 0.000 0.000 {built-in method time.clock} 1 0.000 0.000 0.000 0.000 {built-in method time.time} 1 0.000 0.000 0.000 0.000 {method 'enter' of '_multiprocessing.SemLock' objects} 2758 0.001 0.000 0.001 0.000 {method 'enter' of '_thread.lock' objects} 1 0.000 0.000 0.000 0.000 {method 'exit' of '_multiprocessing.SemLock' objects} 2758 0.001 0.000 0.001 0.000 {method 'exit' of '_thread.lock' objects} 1 0.000 0.000 0.000 0.000 {method 'acquire' of '_multiprocessing.SemLock' objects} 58 0.000 0.000 0.000 0.000 {method 'acquire' of '_thread.RLock' objects} 10299 71.655 0.007 71.655 0.007 {method 'acquire' of '_thread.lock' objects} 2789 0.001 0.000 0.001 0.000 {method 'add' of 'set' objects} 2574 0.001 0.000 0.001 0.000 {method 'append' of 'collections.deque' objects} 16 0.000 0.000 0.000 0.000 {method 'append' of 'list' objects} 32 0.000 0.000 0.000 0.000 {method 'bit_length' of 'int' objects} 9 0.000 0.000 0.000 0.000 {method 'copy' of 'dict' objects} 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects} 27 0.000 0.000 0.000 0.000 {method 'discard' of 'set' objects} 1 0.000 0.000 0.000 0.000 {method 'dump' of '_pickle.Pickler' objects} 1 0.000 0.000 0.000 0.000 {method 'find' of 'str' objects} 17 0.000 0.000 0.000 0.000 {method 'flush' of '_io.TextIOWrapper' objects} 10 0.000 0.000 0.000 0.000 {method 'get' of 'dict' objects} 1 0.000 0.000 0.000 0.000 {method 'getbuffer' of '_io.BytesIO' objects} 61 0.000 0.000 0.000 0.000 {method 'getrandbits' of '_random.Random' objects} 2 0.000 0.000 0.000 0.000 {method 'items' of 'dict' objects} 52 0.000 0.000 0.000 0.000 {method 'join' of 'str' objects} 3 0.000 0.000 0.000 0.000 {method 'locked' of '_thread.lock' objects} 5326 0.003 0.000 0.003 0.000 {method 'popleft' of 'collections.deque' objects} 1 0.000 0.000 0.000 0.000 {method 'put' of '_queue.SimpleQueue' objects} 58 0.000 0.000 0.000 0.000 {method 'release' of '_thread.RLock' objects} 2577 0.001 0.000 0.001 0.000 {method 'release' of '_thread.lock' objects} 2754 0.003 0.000 0.003 0.000 {method 'remove' of 'list' objects} 16 0.000 0.000 0.000 0.000 {method 'remove' of 'set' objects} 10 0.000 0.000 0.000 0.000 {method 'replace' of 'str' objects} 3 0.000 0.000 0.000 0.000 {method 'rfind' of 'str' objects} 16 0.000 0.000 0.000 0.000 {method 'rpartition' of 'str' objects} 2754 0.044 0.000 0.091 0.000 {method 'sort' of 'numpy.ndarray' objects} 2 0.000 0.000 0.000 0.000 {method 'split' of 'str' objects} 2 0.000 0.000 0.000 0.000 {method 'translate' of 'str' objects} 2 0.000 0.000 0.000 0.000 {method 'update' of 'dict' objects} 1 0.000 0.000 0.000 0.000 {method 'write' of '_io.TextIOWrapper' objects}

Here is the return when I run under dedupe 1.9.6:

     64422 function calls in 2.948 seconds

Ordered by: standard name ncalls tottime percall cumtime percall filename:lineno(function) 16 0.000 0.000 0.000 0.000 :1009(_handle_fromlist) 16 0.000 0.000 0.000 0.000 :416(parent) 1 0.003 0.003 2.948 2.948 :1() 1 0.000 0.000 0.000 0.000 init.py:1011(flush) 1 0.000 0.000 0.000 0.000 init.py:1022(emit) 1 0.000 0.000 0.000 0.000 init.py:117(getLevelName) 1 0.000 0.000 0.000 0.000 init.py:1361(debug) 1 0.000 0.000 0.000 0.000 init.py:1373(info) 1 0.000 0.000 0.000 0.000 init.py:1451(findCaller) 1 0.000 0.000 0.000 0.000 init.py:1481(makeRecord) 1 0.000 0.000 0.000 0.000 init.py:1496(_log) 1 0.000 0.000 0.000 0.000 init.py:1521(handle) 1 0.000 0.000 0.000 0.000 init.py:154() 1 0.000 0.000 0.000 0.000 init.py:1575(callHandlers) 1 0.000 0.000 0.000 0.000 init.py:1605(getEffectiveLevel) 2 0.000 0.000 0.000 0.000 init.py:1619(isEnabledFor) 9 0.000 0.000 0.000 0.000 init.py:212(_acquireLock) 9 0.000 0.000 0.000 0.000 init.py:221(_releaseLock) 16 0.001 0.000 0.004 0.000 init.py:253(_at_fork_weak_calls) 8 0.000 0.000 0.000 0.000 init.py:264(_before_at_fork_weak_calls) 1 0.000 0.000 0.000 0.000 init.py:266(viewitems) 8 0.000 0.000 0.003 0.000 init.py:268(_after_at_fork_weak_calls) 1 0.000 0.000 0.000 0.000 init.py:293(init) 1 0.000 0.000 0.000 0.000 init.py:371(getMessage) 1 0.000 0.000 0.000 0.000 init.py:429(usesTime) 1 0.000 0.000 0.000 0.000 init.py:432(format) 1 0.000 0.000 0.000 0.000 init.py:584(usesTime) 1 0.000 0.000 0.000 0.000 init.py:590(formatMessage) 1 0.000 0.000 0.000 0.000 init.py:606(format) 2 0.000 0.000 0.000 0.000 init.py:747(filter) 58 0.000 0.000 0.000 0.000 init.py:849(acquire) 58 0.000 0.000 0.001 0.000 init.py:856(release) 1 0.000 0.000 0.000 0.000 init.py:869(format) 1 0.000 0.000 0.000 0.000 init.py:892(handle) 2754 0.009 0.000 0.012 0.000 _internal.py:395(_newnames) 16 0.000 0.000 0.000 0.000 _weakrefset.py:16(init) 16 0.000 0.000 0.000 0.000 _weakrefset.py:20(enter) 16 0.000 0.000 0.000 0.000 _weakrefset.py:26(exit) 11 0.000 0.000 0.000 0.000 _weakrefset.py:38(_remove) 16 0.000 0.000 0.000 0.000 _weakrefset.py:52(_commit_removals) 128 0.001 0.000 0.002 0.000 _weakrefset.py:58(iter) 11 0.000 0.000 0.000 0.000 _weakrefset.py:81(add) 1 0.000 0.000 0.000 0.000 api.py:397(_blockedPairs) 1 0.000 0.000 0.000 0.000 api.py:411() 1 0.000 0.000 0.000 0.000 api.py:415(_blockGenerator) 20 0.000 0.000 0.000 0.000 api.py:417() 1 0.000 0.000 0.000 0.000 api.py:431() 1 0.000 0.000 0.000 0.000 api.py:452(_checkBlock) 1 0.000 0.000 0.000 0.000 api.py:862(_blockData) 1 0.000 0.000 0.000 0.000 api.py:889(matchBlocks) 1 0.001 0.001 2.945 2.945 api.py:920(match) 2279 0.003 0.000 2.943 0.001 api.py:950() 8 0.000 0.000 0.000 0.000 base.py:5(len) 20 0.000 0.000 0.000 0.000 blocking.py:32(call) 1 0.000 0.000 0.000 0.000 blocking.py:35() 2755 0.005 0.000 2.940 0.001 clustering.py:206(gazetteMatching) 4 0.000 0.000 0.000 0.000 connection.py:117(init) 4 0.000 0.000 0.000 0.000 connection.py:130(del) 1 0.000 0.000 0.000 0.000 connection.py:134(_check_closed) 1 0.000 0.000 0.000 0.000 connection.py:142(_check_writable) 1 0.000 0.000 0.000 0.000 connection.py:181(send_bytes) 4 0.000 0.000 0.000 0.000 connection.py:360(_close) 1 0.000 0.000 0.000 0.000 connection.py:365(_send) 1 0.000 0.000 0.000 0.000 connection.py:390(_send_bytes) 2 0.000 0.000 0.000 0.000 connection.py:506(Pipe) 2 0.000 0.000 0.001 0.000 context.py:109(SimpleQueue) 1 0.000 0.000 0.020 0.020 context.py:114(Pool) 6 0.000 0.000 0.000 0.000 context.py:186(get_context) 4 0.000 0.000 0.000 0.000 context.py:196(get_start_method) 1 0.000 0.000 0.000 0.000 context.py:232(get_context) 8 0.000 0.000 0.016 0.002 context.py:274(_Popen) 4 0.000 0.000 0.000 0.000 context.py:64(Lock) 1 0.000 0.000 0.000 0.000 core.py:305(init) 2755 0.002 0.000 2.894 0.001 core.py:340(scoreGazette) 1 0.000 0.000 0.021 0.021 core.py:363(appropriate_imap) 2 0.000 0.000 0.000 0.000 core.py:381(peek) 2 0.000 0.000 0.000 0.000 datamodel.py:115(check) 2 0.000 0.000 0.000 0.000 datamodel.py:43(_field_comparators) 1 0.000 0.000 0.000 0.000 genericpath.py:117(_splitext) 8 0.000 0.000 0.001 0.000 pool.py:152(Process) 1 0.000 0.000 0.020 0.020 pool.py:155(init) 1 0.001 0.001 0.018 0.018 pool.py:227(_repopulate_pool) 1 0.000 0.000 0.001 0.001 pool.py:250(_setup_queues) 1 0.000 0.000 0.000 0.000 pool.py:327(imap_unordered) 1 0.000 0.000 0.000 0.000 pool.py:538(close) 1 0.000 0.000 0.091 0.091 pool.py:550(join) 1 0.000 0.000 0.000 0.000 pool.py:562(_help_stuff_finish) 1 0.000 0.000 0.000 0.000 pool.py:571(_terminate_pool) 1 0.000 0.000 0.000 0.000 pool.py:717(init) 1 0.000 0.000 0.000 0.000 pool.py:727(iter) 2755 0.010 0.000 2.781 0.001 pool.py:730(next) 8 0.000 0.000 0.015 0.002 popen_fork.py:16(init) 52 0.000 0.000 0.017 0.000 popen_fork.py:25(poll) 8 0.000 0.000 0.016 0.002 popen_fork.py:41(wait) 8 0.001 0.000 0.014 0.002 popen_fork.py:67(_launch) 1 0.000 0.000 0.000 0.000 posixpath.py:121(splitext) 1 0.000 0.000 0.000 0.000 posixpath.py:144(basename) 1 0.000 0.000 0.000 0.000 posixpath.py:41(_get_sep) 1 0.000 0.000 0.000 0.000 posixpath.py:52(normcase) 2 0.000 0.000 0.000 0.000 predicates.py:285(call) 2 0.000 0.000 0.000 0.000 predicates.py:286() 2 0.000 0.000 0.000 0.000 predicates.py:288() 2 0.000 0.000 0.000 0.000 predicates.py:31(strip_punc) 2 0.000 0.000 0.000 0.000 predicates.py:387(commonSixGram) 2 0.000 0.000 0.000 0.000 predicates.py:73(call) 2 0.000 0.000 0.000 0.000 predicates.py:88(func) 2 0.000 0.000 0.000 0.000 predicates.py:95(call) 8 0.001 0.000 0.017 0.002 process.py:101(start) 8 0.000 0.000 0.016 0.002 process.py:133(join) 8 0.000 0.000 0.000 0.000 process.py:144(is_alive) 9 0.000 0.000 0.000 0.000 process.py:180(name) 8 0.000 0.000 0.000 0.000 process.py:184(name) 8 0.000 0.000 0.000 0.000 process.py:196(daemon) 8 0.000 0.000 0.000 0.000 process.py:215(exitcode) 5 0.000 0.000 0.000 0.000 process.py:36(current_process) 8 0.000 0.000 0.000 0.000 process.py:53(_cleanup) 8 0.001 0.000 0.001 0.000 process.py:72(init) 16 0.000 0.000 0.000 0.000 process.py:85() 32 0.000 0.000 0.000 0.000 process.py:90(_check_closed) 2770 0.003 0.000 0.009 0.000 pydev_import_hook.py:16(do_import) 2 0.000 0.000 0.001 0.000 queues.py:330(init) 1 0.000 0.000 0.000 0.000 queues.py:356(put) 32 0.000 0.000 0.000 0.000 random.py:224(_randbelow) 32 0.000 0.000 0.000 0.000 random.py:256(choice) 1 0.000 0.000 0.000 0.000 reduction.py:38(init) 1 0.000 0.000 0.000 0.000 reduction.py:48(dumps) 4 0.000 0.000 0.000 0.000 synchronize.py:114(_make_name) 4 0.000 0.000 0.000 0.000 synchronize.py:161(init) 4 0.000 0.000 0.000 0.000 synchronize.py:50(init) 4 0.000 0.000 0.000 0.000 synchronize.py:90(_make_methods) 1 0.000 0.000 0.000 0.000 synchronize.py:94(enter) 1 0.000 0.000 0.000 0.000 synchronize.py:97(exit) 4 0.000 0.000 0.000 0.000 tempfile.py:142(rng) 4 0.000 0.000 0.000 0.000 tempfile.py:153(next) 4 0.000 0.000 0.000 0.000 tempfile.py:156() 6 0.000 0.000 0.074 0.012 threading.py:1000(join) 6 0.000 0.000 0.074 0.012 threading.py:1038(_wait_for_tstate_lock) 1 0.000 0.000 0.000 0.000 threading.py:1052(name) 2 0.000 0.000 0.000 0.000 threading.py:1080(is_alive) 3 0.000 0.000 0.000 0.000 threading.py:1096(daemon) 3 0.000 0.000 0.000 0.000 threading.py:1112(daemon) 13 0.000 0.000 0.000 0.000 threading.py:1206(current_thread) 4 0.000 0.000 0.000 0.000 threading.py:216(init) 2758 0.001 0.000 0.002 0.000 threading.py:240(enter) 2758 0.001 0.000 0.002 0.000 threading.py:243(exit) 1114 0.001 0.000 0.001 0.000 threading.py:249(_release_save) 1114 0.001 0.000 0.002 0.000 threading.py:252(_acquire_restore) 1114 0.001 0.000 0.001 0.000 threading.py:255(_is_owned) 1114 0.006 0.000 2.766 0.002 threading.py:264(wait) 3 0.000 0.000 0.000 0.000 threading.py:499(init) 12 0.000 0.000 0.000 0.000 threading.py:507(is_set) 3 0.000 0.000 0.001 0.000 threading.py:534(wait) 3 0.000 0.000 0.000 0.000 threading.py:728(_newname) 3 0.000 0.000 0.000 0.000 threading.py:758(init) 3 0.000 0.000 0.001 0.000 threading.py:829(start) 3 0.000 0.000 0.000 0.000 threading.py:968(_stop) 4 0.000 0.000 0.000 0.000 util.py:136(register_after_fork) 9 0.001 0.000 0.001 0.000 util.py:151(init) 9 0.000 0.000 0.000 0.000 util.py:170(call) 8 0.000 0.000 0.000 0.000 util.py:398(_flush_std_streams) 9 0.000 0.000 0.000 0.000 util.py:44(sub_debug) 22 0.000 0.000 0.000 0.000 util.py:48(debug) 4 0.000 0.000 0.000 0.000 weakref.py:109(remove) 4 0.000 0.000 0.000 0.000 weakref.py:165(setitem) 4 0.000 0.000 0.000 0.000 weakref.py:334(new) 4 0.000 0.000 0.000 0.000 weakref.py:339(init) 4 0.000 0.000 0.000 0.000 {built-in method new of type object at 0x106253830} 1 0.000 0.000 0.000 0.000 {built-in method _struct.pack} 1118 0.001 0.000 0.001 0.000 {built-in method _thread.allocate_lock} 14 0.000 0.000 0.000 0.000 {built-in method _thread.get_ident} 3 0.000 0.000 0.000 0.000 {built-in method _thread.start_new_thread} 4 0.000 0.000 0.000 0.000 {built-in method _weakref._remove_dead_weakref} 2770 0.005 0.000 0.005 0.000 {built-in method builtins.import} 1 0.000 0.000 2.948 2.948 {built-in method builtins.exec} 117 0.000 0.000 0.000 0.000 {built-in method builtins.getattr} 21 0.000 0.000 0.000 0.000 {built-in method builtins.hasattr} 4 0.000 0.000 0.000 0.000 {built-in method builtins.id} 5520 0.001 0.000 0.001 0.000 {built-in method builtins.isinstance} 2800 0.001 0.000 0.001 0.000 {built-in method builtins.len} 28 0.000 0.000 0.000 0.000 {built-in method builtins.next} 2 0.000 0.000 0.000 0.000 {built-in method dedupe.cpredicates.ngrams} 8 0.000 0.000 0.000 0.000 {built-in method posix.WEXITSTATUS} 8 0.000 0.000 0.000 0.000 {built-in method posix.WIFEXITED} 8 0.000 0.000 0.000 0.000 {built-in method posix.WIFSIGNALED} 20 0.000 0.000 0.000 0.000 {built-in method posix.close} 8 0.008 0.001 0.012 0.002 {built-in method posix.fork} 3 0.000 0.000 0.000 0.000 {built-in method posix.fspath} 55 0.000 0.000 0.000 0.000 {built-in method posix.getpid} 10 0.000 0.000 0.000 0.000 {built-in method posix.pipe} 36 0.016 0.000 0.016 0.000 {built-in method posix.waitpid} 1 0.000 0.000 0.000 0.000 {built-in method posix.write} 1 0.000 0.000 0.000 0.000 {built-in method sys._getframe} 1 0.000 0.000 0.000 0.000 {built-in method time.clock} 1 0.000 0.000 0.000 0.000 {built-in method time.time} 1 0.000 0.000 0.000 0.000 {method 'enter' of '_multiprocessing.SemLock' objects} 2758 0.001 0.000 0.001 0.000 {method 'enter' of '_thread.lock' objects} 1 0.000 0.000 0.000 0.000 {method 'exit' of '_multiprocessing.SemLock' objects} 2758 0.000 0.000 0.000 0.000 {method 'exit' of '_thread.lock' objects} 1 0.000 0.000 0.000 0.000 {method 'acquire' of '_multiprocessing.SemLock' objects} 67 0.000 0.000 0.000 0.000 {method 'acquire' of '_thread.RLock' objects} 4459 2.831 0.001 2.831 0.001 {method 'acquire' of '_thread.lock' objects} 2789 0.001 0.000 0.001 0.000 {method 'add' of 'set' objects} 1114 0.000 0.000 0.000 0.000 {method 'append' of 'collections.deque' objects} 16 0.000 0.000 0.000 0.000 {method 'append' of 'list' objects} 32 0.000 0.000 0.000 0.000 {method 'bit_length' of 'int' objects} 9 0.000 0.000 0.000 0.000 {method 'copy' of 'dict' objects} 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects} 27 0.000 0.000 0.000 0.000 {method 'discard' of 'set' objects} 1 0.000 0.000 0.000 0.000 {method 'dump' of '_pickle.Pickler' objects} 1 0.000 0.000 0.000 0.000 {method 'find' of 'str' objects} 17 0.000 0.000 0.000 0.000 {method 'flush' of '_io.TextIOWrapper' objects} 10 0.000 0.000 0.000 0.000 {method 'get' of 'dict' objects} 1 0.000 0.000 0.000 0.000 {method 'getbuffer' of '_io.BytesIO' objects} 50 0.000 0.000 0.000 0.000 {method 'getrandbits' of '_random.Random' objects} 2 0.000 0.000 0.000 0.000 {method 'items' of 'dict' objects} 52 0.000 0.000 0.000 0.000 {method 'join' of 'str' objects} 3 0.000 0.000 0.000 0.000 {method 'locked' of '_thread.lock' objects} 3866 0.001 0.000 0.001 0.000 {method 'popleft' of 'collections.deque' objects} 1 0.000 0.000 0.000 0.000 {method 'put' of '_queue.SimpleQueue' objects} 67 0.000 0.000 0.000 0.000 {method 'release' of '_thread.RLock' objects} 1117 0.000 0.000 0.000 0.000 {method 'release' of '_thread.lock' objects} 2754 0.001 0.000 0.001 0.000 {method 'remove' of 'list' objects} 16 0.000 0.000 0.000 0.000 {method 'remove' of 'set' objects} 10 0.000 0.000 0.000 0.000 {method 'replace' of 'str' objects} 3 0.000 0.000 0.000 0.000 {method 'rfind' of 'str' objects} 16 0.000 0.000 0.000 0.000 {method 'rpartition' of 'str' objects} 2754 0.021 0.000 0.041 0.000 {method 'sort' of 'numpy.ndarray' objects} 2 0.000 0.000 0.000 0.000 {method 'split' of 'str' objects} 2 0.000 0.000 0.000 0.000 {method 'translate' of 'str' objects} 2 0.000 0.000 0.000 0.000 {method 'update' of 'dict' objects} 1 0.000 0.000 0.000 0.000 {method 'write' of '_io.TextIOWrapper' objects}

monicatao avatar Aug 28 '19 00:08 monicatao

this should be fixed in an upcoming release.

fgregg avatar Jan 08 '20 21:01 fgregg

Hi @fgregg is this fixed in the 1.10 release?

Thanks!

michael-clarkson avatar Jan 09 '20 15:01 michael-clarkson

no, it's fixed on the https://github.com/dedupeio/dedupe/tree/dedupe_2 branch

fgregg avatar Jan 09 '20 15:01 fgregg

Ok thanks, do you have a plan about when you would like to release it?

michael-clarkson avatar Jan 09 '20 16:01 michael-clarkson

no

fgregg avatar Jan 09 '20 16:01 fgregg

Hi @fgregg is there a reason why it's not fixed in the new release but in a different branch?

monicatao avatar Feb 10 '20 13:02 monicatao

please feel free to port the fix.

fgregg avatar Feb 10 '20 14:02 fgregg

closed by https://github.com/dedupeio/dedupe/pull/788

fgregg avatar Mar 09 '20 18:03 fgregg