core icon indicating copy to clipboard operation
core copied to clipboard

[POC] Stringview

Open qazxcdswe123 opened this issue 5 months ago • 3 comments

The main idea is to eliminate the cost of constructing an Array from String then ArrayView it.

However, this implementation lacks some important property, like

match view {
  ['-', '>', .. as rest] => ...
}

Which is extensively used in minimoonbit's implementation. This is not ideal, and the compiler should be able to handle this case

qazxcdswe123 avatar Sep 12 '24 10:09 qazxcdswe123