Skip to content

Replace _bitCount popcount in persistent_hash_map.dart with int.oneBitCount #189716

Closed

Description

@modulovalue

Dart 3.13 will land int.oneBitCount as a replacement for SWAR popcounts.

We should replace the ad-hoc implementation with the new member once min SDK reaches Dart 3.13

Activity

  1. suryaKommana2662 commented on Jul 20, 2026

    @suryaKommana2662
    Contributor

    @modulovalue Thanks for the suggestion! This appears to be a Flutter framework maintenance/refactoring request to replace the existing _bitCount implementation with int.oneBitCount once the minimum supported Dart SDK is updated to 3.13. Labeling for the team-framework to evaluate.

  2. added and removed
    in triagePresently being triaged by the triage team
    on Jul 20, 2026
  3. modulovalue commented on Jul 21, 2026

    @modulovalue
    Author

    @assassinaj602 It seems like you commented on the wrong issue

  4. added
    P2Important issues not at the top of the work list
    on Jul 21, 2026
  5. Piinks commented on Jul 21, 2026

    @Piinks
    Contributor

    We are planning to bump to 3.13 in August, we can take a look at this then.

  6. self-assigned this
    on Jul 21, 2026
  7. stuartmorgan-g commented on Jul 23, 2026

    @stuartmorgan-g
  8. assigned and unassigned on Aug 25, 2026
  9. added a commit that references this issue on Oct 28, 2026
    9d1cdd5
  10. added a commit that references this issue on Oct 29, 2026
    c110cbb
  11. github-actions commented on Nov 11, 2026

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  12. locked as resolved and limited conversation to collaborators on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.frameworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions