You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Reranko05 (via GitHub)" <gi...@apache.org> on 2026/04/13 17:46:35 UTC
[I] Optimize base64_decode validation using lookup table [arrow]
Reranko05 opened a new issue, #49720:
URL: https://github.com/apache/arrow/issues/49720
### Describe the enhancement requested
The current implementation of `base64_decode` validates characters using `base64_chars.find()` per byte, which results in repeated linear searches.
This can be optimized by using a 256-entry lookup table (byte → sextet or invalid marker), allowing validation and decoding in a single pass with O(1) lookup.
This was identified during PR review and deferred to a follow-up.
Related: #49660
### Component(s)
C++
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [C++] Optimize base64_decode validation using lookup table [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on issue #49720:
URL: https://github.com/apache/arrow/issues/49720#issuecomment-4273152811
Issue resolved by pull request 49748
https://github.com/apache/arrow/pull/49748
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [C++] Optimize base64_decode validation using lookup table [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou closed issue #49720: [C++] Optimize base64_decode validation using lookup table
URL: https://github.com/apache/arrow/issues/49720
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org