Skip to content
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

Fix marshal tinyint - optimization #294

Merged

Conversation

illia-li
Copy link

@illia-li illia-li commented Oct 7, 2024

Chenges:

  1. Unmarshal functions:
    1.1. The double conversion of values has been removed in the functions of single reference values.
    1.2. The condition data == nil moved after the condition len(data)==0 in the functions of the double references values.
  2. EncReflect function:
    2.1. Removed unnecessary checks for reflect.Int8 and reflect.Uint8 kinds.
    2.2. Makes the right value type in the error for reflect.String kind.

changes:
* removed unnecessary checks for `reflect.Int8` and `reflect.Uint8` kinds
* makes the right value type in the error of the `EncReflect` function
@illia-li illia-li force-pushed the il/fix/marshal/optimization_tinyint branch from 0529b16 to 23d1f3e Compare October 7, 2024 17:50
changes:
* double conversion of values has been removed in the functions of single reference values.
* the condition `data == nil` moved after the condition `len(data)==0` in the functions of the double references values.
@illia-li illia-li force-pushed the il/fix/marshal/optimization_tinyint branch from 23d1f3e to 0ae9a24 Compare October 7, 2024 18:18
@dkropachev dkropachev merged commit 98eab7d into scylladb:master Oct 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants