Skip to content

Performance question #280

Answered by zaeleus
anderspitman asked this question in Q&A
Jul 11, 2024 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

Hi @anderspitman,

When looking to optimize, I first recommend profiling with performance counters to better understand where time is being spent during execution. For example, on a Linux system using perf:

$ cargo build --release
$ perf record --call-graph dwarf target/release/samslice in.bam out.bam chr9 chrM
$ perf report --hierarchy --disassembler-style intel
-  100.00%        samslice
   -   95.12%        samslice
      +   74.28%        [.] miniz_oxide::deflate::core::compress_inner
      +    3.80%        [.] miniz_oxide::inflate::core::decompress
      +    3.47%        [.] miniz_oxide::deflate::core::compress_block
[...]

This shows that 80+% of time is being spent in the DEFLATE…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@anderspitman
Comment options

@zaeleus
Comment options

@anderspitman
Comment options

@anderspitman
Comment options

@zaeleus
Comment options

Answer selected by anderspitman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #279 on July 12, 2024 16:26.