Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

identify bottlenecks in code execution to speed up generation of sample(s) #15

Open
br-pki opened this issue Aug 4, 2021 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@br-pki
Copy link
Owner

br-pki commented Aug 4, 2021

Output from a run of cProfile indicates slow processing in standard pandas calls (not pandorable?). See attachment
cProfile_profiling_results.txt

@br-pki
Copy link
Owner Author

br-pki commented Aug 4, 2021

Actually, output from line_profiler gives a more insightful, line-by-line breakdown of time. Biggest offenders are

  • sample = take_sample(sentences, args.sample_type)
  • these_sentences["Sentence_word_char_len"] = these_sentences.apply(
    lambda row: get_sentence_word_char_len(row), axis=1)
  • sentences = get_sentences(min_sentences=args.minimum_sentences, the
    se_languages=args.languages)
  • this_language = this_row["Language"]

@br-pki br-pki added the help wanted Extra attention is needed label Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant