Skip to content

Very slow performance on debug mode #732

@Mairramer

Description

@Mairramer

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.

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