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

v2.0.5 proposal #9

Merged
merged 5 commits into from Jan 4, 2023
Merged

v2.0.5 proposal #9

merged 5 commits into from Jan 4, 2023

Conversation

nsavoire
Copy link
Contributor

@nsavoire nsavoire commented Dec 27, 2022

I propose to stay on the v2.x line since the changes done do not change the API.

Qard and others added 5 commits November 9, 2022 16:26
* Avoid making StringTable inherit from Array, this seems dangerous as one could `push` directly without updating the internal structures
* StringTable has an optional `tok` argument that triggers creation of an empty table if constant `emptyTableToken`is passed, otherwise
  the empty string is insrted in the constructor
* ProfileInput.stringTable only accepts StringTable
* During decoding, `ProfileInput.stringTable` is created empty and elements are inserted with `_decodeString`
* If `Profile` is constructed without defining `ProfileInput.stringTable`, a string table containing only the empty string will be constructed
* `StringTable.#encodings` have been converted from a Map to an Array since it can be indexed by position
* During decoding, `StringTable.encodings` is still recomputed (which is a bit inefficient since it has just been deserialized) but string utf8 encoding is reused
@github-actions
Copy link

Overall package size

Self size: 164.74 kB
Deduped: 164.74 kB
No deduping: 164.74 kB

Dependency sizes

name version self size total size

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@nsavoire nsavoire changed the title V2.0.5 proposal v2.0.5 proposal Dec 27, 2022
@nsavoire nsavoire requested a review from Qard December 27, 2022 15:51
@nsavoire nsavoire merged commit 183d1a6 into v2.x Jan 4, 2023
@nsavoire nsavoire deleted the v2.0.5-proposal branch January 4, 2023 13:33
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.

None yet

2 participants