Search packages, repositories and app categories

Package detailsv0.5.1

integral_isolates

The power of Dart's compute function, but using a long lived isolate.

AndroidiOSmacOSWindowsLinux
30-day downloads
14.5K
Likes
43
Pub points
150

Install package

flutter pub add integral_isolates

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

integral_isolates provides a way to leverage long-lived isolates in Dart, offering persistent background computation without the overhead of repeatedly spawning and terminating isolates. Inspired by Dart's compute function, it enables efficient, reusable isolate instances for CPU-intensive tasks like data processing or complex calculations. This approach improves performance and reduces latency compared to short-lived isolate invocations. The package is ideal for scenarios requiring continuous background work with consistent state or shared resources. It supports all major platforms including Android, iOS, macOS, Windows, and Linux.

Use cases

  • Long-running background computations
  • Persistent data processing pipelines
  • Efficient repeated task execution
  • Shared state across multiple operations
  • Real-time analytics processing

Key features

  • Long-lived isolate management
  • Improved performance over repeated compute calls
  • Support for persistent isolate state
  • Cross-platform compatibility
  • Simple API similar to compute()

Suitable for

  • CPU-intensive applications
  • Applications needing consistent isolate state
  • High-frequency task execution
  • Background services in mobile and desktop apps
  • Performance-critical data processing

Considerations

  • Increased memory usage due to long-lived isolates
  • Requires careful handling of isolate lifecycle
  • Potential for resource leaks if not managed properly
  • Not suitable for one-off lightweight tasks
  • Must manage serialization of data sent between main and isolate

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Integral Isolates

Monorepo for integral_isolates and libraries using it to make Isolates easier for developers.

Melos is used for managing the monorepo. To get started, make sure melos is installed on your machine and run

$ melos bootstrap

Packages can be found in the packages folder, each including their own README.md file.

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package