Skip to content

Silence cats-effect starvation check #21

@yhefamly

Description

@yhefamly

First of all, thank you for this really cool project ❤️

During my first tests, I noticed that cellar search --module mymodule MyClass prints cats-effect CPU starvation warnings (0.1.0-M4, on a MacBook Pro M4 and a larger sbt monorepo, search took ~10s total).

While a nuisance for human users, AI will process these warnings, wasting tokens on garbage. I briefly skimmed through the codebase and it seems blocking operations are properly handled (*), so this may just be due to the nature of cellar's work. cats-effect's IORuntimeConfig allows disabling the check via defaultCpuStarvationCheckInitialDelay = Duration.Inf, wdyt of doing so?

(*): It even seems you could remove some IO.blocking by using cats.effect.std.SystemProperties to read JVM props – the CE version does not block on reading, only when updating.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions