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
There is a technique to detect whitespace using bitwise operation.
valspaces=1L<<' '|1L<<'\n'|1L<<'\r'|1L<<'\t'// because ' ', '\n', '\r', '\t' are less than or equals to 32, // you can get bit flags for whitespaces shifting 1 by their int value.if (1<<char&spaces !=0) {
// char is whitespace here
}
There is a technique to detect whitespace using bitwise operation.
The same idea is discussed in typelevel/jawn#26 (comment)
Does this technique make jsoniter-scala faster or jsoniter-scala has already adopted this technique?
The text was updated successfully, but these errors were encountered: