I am attempting to profile a Python app that uses the fastavro library.
- I am profiling using the Datadog Profiler
- I run the application using the command
ddtrace-run python -m app.main
- I enable the profiler using the environment variable
DD_PROFILING_ENABLE=true
This results in the following performance degredation in fastavro.schemaless_reader
- With profiler enabled, the average execution time is ~38ms
- With profiler disabled, the average is ~6ms
Has anyone else tried to profile the fastavro library and could shine a light on why the profiler is causing such a performance loss?