You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Buffer module, we have a series of methods for handling string writing and reading, such as latin1WriteStatic and utf8WriteStatic. However, in some situations, we don't know the actual encoding of the string without checking every character. Checking the encoding will introduce overhead, especially when the string is large since SIMD is not accessible on the JavaScript side. In some string processing programs like the serialize framework (https://fury.apache.org/), high performance in string processing is highly beneficial for such programs.
What is the feature you are proposing to solve the problem?
Add isOneByteString function on the javascript side.
Add the getIsOneByte function on the C++ side.
There is GetIsOneByteSlow for the slow mode, which is used when the place where it is being used cannot be compiled by TurboFan.
And there is GetIsOneByteFast for the fast mode. This function is only applicable when the input string is a FastOneByteString, and in such a case, it will return true directly.
What is the problem this feature will solve?
In the Buffer module, we have a series of methods for handling string writing and reading, such as
latin1WriteStatic
andutf8WriteStatic
. However, in some situations, we don't know the actual encoding of the string without checking every character. Checking the encoding will introduce overhead, especially when the string is large since SIMD is not accessible on the JavaScript side. In some string processing programs like the serialize framework (https://fury.apache.org/), high performance in string processing is highly beneficial for such programs.What is the feature you are proposing to solve the problem?
Add
isOneByteString
function on the javascript side.Add the getIsOneByte function on the C++ side.
There is
GetIsOneByteSlow
for the slow mode, which is used when the place where it is being used cannot be compiled by TurboFan.And there is
GetIsOneByteFast
for the fast mode. This function is only applicable when the input string is aFastOneByteString
, and in such a case, it will return true directly.What alternatives have you considered?
No response
The text was updated successfully, but these errors were encountered: