objectbox / objectbox/objectbox-dart

Very slow performance on debug mode

Open
#732 22 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
1.2k
Forks
162
Avg merge
15m
Merged PRs (30d)
1

Description

Is there an existing issue?
Build info
  • objectbox version: 4.3.0
  • Flutter/Dart version: 3.29.3
  • Build OS: macOS 15.4.1 (24E263)
  • Deployment OS or device: Android 14,Android 15, iOS 18.4

I'm migrating from Isar to ObjectBox and facing a major issue in debug mode. I’ve done some investigation but haven’t identified the root cause yet.

I’m already using ObjectBox in another app (Flutter version 3.24.5) without any performance issues during debugging. However, in this other (much larger) app, I’m unable to run it smoothly in debug mode. After some research, I found two possible reasons:

  1. Merged platform and UI threads – Flutter issue #150525. This specific comment caught my attention.

  2. Hot reload performance degradation when using multiple isolates – Flutter issue #169437

I’ve tried using the following flag:

<meta-data
    android:name="io.flutter.embedding.android.DisableMergedPlatformUIThread"
    android:value="true" />

But the result was the same.

My question is: is this a Dart/Flutter limitation, or is it truly related to the merged thread behavior and FFI communication?

It's also worth noting that I don’t experience this problem with Isar, even though it also relies on FFI.

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

No repository file, test, or entry point is identified. Start by reproducing the debug-mode slowdown in the larger Flutter app on the listed Android or iOS environments, then compare behavior with the referenced Flutter merged-thread and multi-isolate issues; done requires identifying whether ObjectBox FFI contributes or documenting a Flutter limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
databases, mobile-dev, performance
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.