typelevel / typelevel/cats-effect

Profile IO

Open
#1,054 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
2.2k
Forks
576
Avg merge
2d 11h
Merged PRs (30d)
18

Description

We should profile the new IO with our recently acquired YourKit license. The most important things we should be looking out for:

  1. Eliminate memory leaks
  2. Eliminate CPU bottlenecks
  3. Reduce object allocation rate

I'm not sure if we can reuse some of the JMH benchmarks here, but maybe its worth creating a suite of profiling tests that we can more easily hook up the YourKit agent to. We should definitely profile starting and terminating/cancelling fibers.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing JMH benchmarks and determine whether they can be used with the YourKit agent. Focus profiling on fiber startup and termination or cancellation, measuring memory leaks, CPU bottlenecks, and object allocation rate. Done means the relevant profiling coverage or repeatable profiling suite produces actionable results for these areas.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.