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

feat: Implement trim() to remove unused space #461

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

mrousavy
Copy link
Owner

No description provided.

@ken0nek
Copy link
Sponsor

ken0nek commented Nov 9, 2022

Hi @mrousavy,
always appreciate your work!

Do you have any estimate for releasing it?

@@ -221,6 +221,20 @@ jsi::Value MmkvHostObject::get(jsi::Runtime& runtime, const jsi::PropNameID& pro
});
}

if (propName == "trim") {
// MMKV.trim()
Copy link
Sponsor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wdym for reference?

Copy link
Sponsor

@ken0nek ken0nek Nov 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just wanted to put the reference links on the MMKKV repo to easily get to the raw implementation. Does not mean feedback or request 👍

@mrousavy
Copy link
Owner Author

mrousavy commented Nov 9, 2022

I think trim() doesn't work the way I thought it would work. Try it for yourself

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

Successfully merging this pull request may close these issues.

None yet

2 participants