Skip to content

Comments

refactor: tidy binding java code#5840

Merged
Xuanwo merged 1 commit intomainfrom
tidy-binding-java
Mar 21, 2025
Merged

refactor: tidy binding java code#5840
Xuanwo merged 1 commit intomainfrom
tidy-binding-java

Conversation

@tisonkun
Copy link
Member

@github-actions github-actions bot added the releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor" label Mar 21, 2025
Ok(env.get_field(obj, field, "Z")?.z()?)
}

pub(crate) fn read_string_field(
Copy link
Member Author

Choose a reason for hiding this comment

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

Some perf ideas:

  • Filter out null options object (currently we always pass an option object, but can be null to indicate all default anyway)
  • Cache field id and try to use get_field_unchecked.

Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you!

@Xuanwo Xuanwo merged commit e7174a5 into main Mar 21, 2025
72 checks passed
@Xuanwo Xuanwo deleted the tidy-binding-java branch March 21, 2025 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/refactor The PR does a refactor on code or has a title that begins with "refactor"

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants