Skip to content

Commit

Permalink
increase performance in 17% on TO_JSON method when it is bitfield by …
Browse files Browse the repository at this point in the history
…limit data size
  • Loading branch information
peczenyj committed Dec 12, 2023
1 parent 0b77ede commit 41085cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/GDPR/IAB/TCFv2/BitField.pm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ sub Parse {
my $self = {

# TODO consider store data as arrayref of bits
data => substr( $data, $offset ),
data => substr( $data, $offset, $max_id ),
max_id => $max_id,
options => $options,
};
Expand Down

0 comments on commit 41085cc

Please sign in to comment.