You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run a GO project (kagome), compiled using CGO to a binary, in Flutter (here you can find the really bad bindings). This is working very well for Android, MacOS and Windows. But somehow, it takes a very long time (something like 10 min) to run a method (initTokenizer) on iPads (most probably iPhones too). This method initialises a global variable. The weird thing is, it does not take any significant amount of time on any other Platform (Windows, MacOS, Android) and also when running the iOS app on a M1 Pro MacBook Pro there is no such problem.
As there is no command line output or anything I am quite clueless what could cause this behaviour. Here is a .zip with the dart plugin. Inside the example folder is an example demonstrating the problem. It is setup to run on MacOS and iOS. Pressing the ActionButton invokes the plugin and shows the delay on iOS.
What could cause this?
The text was updated successfully, but these errors were encountered:
@Taym95 I do not know where the problem lies. I assume there is no problem in itself with the mentioned package as the library works on android, linux, macOS and Windows as intended. I would guess the problem is either on the iOS CGO side or the dart ffi side.
The package kagome-dict loads a large binary blob that is embedded in the code using //go:embed, and this function takes up all the time.
I am trying to run a GO project (kagome), compiled using CGO to a binary, in Flutter (here you can find the really bad bindings). This is working very well for Android, MacOS and Windows. But somehow, it takes a very long time (something like 10 min) to run a method (
initTokenizer
) on iPads (most probably iPhones too). This method initialises a global variable. The weird thing is, it does not take any significant amount of time on any other Platform (Windows, MacOS, Android) and also when running the iOS app on a M1 Pro MacBook Pro there is no such problem.As there is no command line output or anything I am quite clueless what could cause this behaviour. Here is a .zip with the dart plugin. Inside the example folder is an example demonstrating the problem. It is setup to run on MacOS and iOS. Pressing the ActionButton invokes the plugin and shows the delay on iOS.
What could cause this?
The text was updated successfully, but these errors were encountered: