Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

鸿蒙Next MMKV 解析Boolean的时候比较耗时,差的时候要1ms #1324

Open
xinle opened this issue Jun 13, 2024 · 7 comments
Open

鸿蒙Next MMKV 解析Boolean的时候比较耗时,差的时候要1ms #1324

xinle opened this issue Jun 13, 2024 · 7 comments

Comments

@xinle
Copy link

xinle commented Jun 13, 2024

Note:

An crash issue will be ignored & closed in a week without logs.

The language of MMKV

e.g. Objective-C, Swift, Java, or Kotlin

The version of MMKV

e.g. v1.2.2
Note: For versions older than the latest version, please upgrade before posting any issue.
We don't have much time for old version tech support.

The platform of MMKV

e.g. iOS or Android

The installation of MMKV

e.g. Cocoapods, Maven, or Git clone

What's the issue?

Post the outputs or screenshots for errors.

Explain what you want by example or code in English.
If you have a crash/OOM/ANR on Android, please provide symbolize stack traces. https://developer.android.com/ndk/guides/ndk-stack.html

What's the log of MMKV when that happened?

Your detail logs. As much as possible.
For how to forward MMKV's log, you can checkout the wiki on each platform.
An crash issue will be ignored & closed in a week without logs.

@lingol
Copy link
Collaborator

lingol commented Jun 14, 2024

It's quite impossible. What is the log when it happens? Is it doing a loading/reload from file?

@lingol
Copy link
Collaborator

lingol commented Jun 14, 2024

If possible you should provide a reproducible demo.

@xinle
Copy link
Author

xinle commented Jun 14, 2024

辛苦看下这个是trace抓到的数据
Uploading 20240614141902.jpg…

@xinle
Copy link
Author

xinle commented Jun 14, 2024

@lingol
Copy link
Collaborator

lingol commented Jun 17, 2024

https://imagev2.xmcdn.com/storages/34b6-audiofreehighqps/AC/FC/GArMcTAKQaRhAAOQcwLhgy5j.jpg 这个是trace的数据

  1. That has little info if not any. According to this, the NAPI only costs 300+us, and the majority cost is inside ArtTS wrapper, I can only assume the ArtTS sucks because it's a fairly straightforward wrapper. https://github.com/Tencent/MMKV/blob/master/OpenHarmony/MMKV/src/main/ets/utils/MMKV.ets#L168

辛苦看下这个是trace抓到的数据
Uploading 20240614141902.jpg…

  1. That image is broken.
  2. One more thing, why is your MMKV wrapper named MMKV.ts? Last time I checked, the official MMKV is provided as MMKV.ets. Is it possible that you were using an unofficial port of MMKV such as @ohos/mmkv? The official port is named @tencent/mmkv.

@SunryOne

This comment was marked as off-topic.

@lingol
Copy link
Collaborator

lingol commented Jun 25, 2024

hello,1.3.5版本 请问你们是如何在鸿蒙UIAbility 里面进行引入的呢。 不应该会报Importing ArkTS files to JS and TS files is not allowed. 的错误吗

Don't make unrelative questions, if you have an issue open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants