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

fix: revert Encoding API #474

Merged
merged 16 commits into from
Jul 15, 2024

Conversation

nabetti1720
Copy link
Contributor

@nabetti1720 nabetti1720 commented Jul 14, 2024

Issue # (if available)

#431 (comment)

Description of changes

Revert to the implementation prior to applying encoding_rs for optimal performance and footprint.

  • The source structure (e.g., file separation) maintains the most recent structure.
  • Methods and properties that can be retained are retained. However, there are some that are not functional.
  • Support for utf16le is not included in this PR because we are not sure if it can be done immediately.
    For UTF-16LE, only the conversions required by TextDecoder are supported.

Checklist

  • Created unit tests in tests/unit and/or in Rust for my feature if needed
  • Ran make fix to format JS and apply Clippy auto fixes
  • Made sure my code didn't add any additional warnings: make check
  • Updated documentation if needed (API.md/README.md/Other)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@nabetti1720 nabetti1720 marked this pull request as draft July 14, 2024 14:12
@nabetti1720 nabetti1720 marked this pull request as ready for review July 15, 2024 04:43
@nabetti1720
Copy link
Contributor Author

I think we could have utf-16le support without using encoding_rs. :)

@nabetti1720 nabetti1720 marked this pull request as draft July 15, 2024 09:03
@nabetti1720 nabetti1720 marked this pull request as ready for review July 15, 2024 09:15
Copy link
Contributor

@richarddavison richarddavison left a comment

Choose a reason for hiding this comment

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

Almost there! Just some minor changes!

llrt_core/src/modules/encoding/text_decoder.rs Outdated Show resolved Hide resolved
llrt_utils/src/encoding.rs Outdated Show resolved Hide resolved
llrt_utils/src/encoding.rs Outdated Show resolved Hide resolved
@nabetti1720
Copy link
Contributor Author

Hi @richarddavison , All have been addressed. :)

Copy link
Contributor

@richarddavison richarddavison left a comment

Choose a reason for hiding this comment

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

Awesome 👏

@richarddavison richarddavison merged commit 9e21153 into awslabs:main Jul 15, 2024
5 checks passed
@nabetti1720 nabetti1720 deleted the fix/revert-encoding-api branch July 15, 2024 21:37
gc-victor added a commit to gc-victor/query that referenced this pull request Jul 22, 2024
gc-victor added a commit to gc-victor/query that referenced this pull request Jul 22, 2024
gc-victor added a commit to gc-victor/query that referenced this pull request Jul 22, 2024
gc-victor added a commit to gc-victor/query that referenced this pull request Jul 25, 2024
gc-victor added a commit to gc-victor/query that referenced this pull request Jul 25, 2024
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.

2 participants