Skip to content

Add a batch classification API #38

Open

Description

@developerjamiu

SmartTextFlutter.classifyText handles one string per channel round trip. Rendering fifty chat messages means fifty async hops, each paying the roughly 200 us transport floor measured in the caching issue.

Fix: add classifyTexts(List<String>) that classifies a batch in one call, and keep the single-text method as a thin wrapper over it.

Useful for any list-based UI, which is the plugin's main use case.

Found during the v0.4.0 codebase audit.

Activity

  1. added
    enhancement
    performance
    api
    on Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apienhancementperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions