-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
High cost encoding and decoding in the League library #23
Comments
Well, I see |
I propose to move
into a public part of PB_Support.Internal and reuse it in the body of PB_Support.IO if this works. |
It doesn't make much difference after the change, this time. Looking more closely at the report, most of the time is gone encoding and decoding the UTF-8 strings. |
League.Text_Codecs.Codec
in PB_Support.IO
What I've gathered is that I was looking at https://web.archive.org/web/20220817170400/https://forge.ada-ru.org/matreshka/wiki/League/Performance which says
and I wonder how could I check that it is actually using the SIMD operations in my build. I don't see any clue about it in the Callgrind report. I was also wondering if there could be a way to speed up conversion if you know that the input is always going to be in the US-ASCII subset, which is my particular case. |
We could try to replace Matreshka with VSS. VSS uses |
protobuf/source/runtime/pb_support-io.adb
Line 746 in a1422f3
Similar to #20.
I was going to apply the same solution than in #20. I see two possibilities:
PB_Support.IO
.PB_Support.Internal
toPB_Support
(private part) and use it from both packages.Do you see any problem in sharing this in
PB_Support
?The text was updated successfully, but these errors were encountered: