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

add JavaScriptCodec to serialize JavaScript data structure #61

Closed
wants to merge 6 commits into from

Conversation

gfx
Copy link
Member

@gfx gfx commented Jun 6, 2019

This is an experimental feature to serialize and deserialize JavaScript data structure, just like as https://github.com/yahoo/serialize-javascript

I'm investigating that it really improves performance when serialize-javascript is replaced to msgpack, so it is marked as DO NOT MERGE for now.

Resolve #58

See also

case "undefined": {
return undefined;
}
case "Map": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move strings to Enum

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly.

@codecov-io
Copy link

codecov-io commented Jun 11, 2019

Codecov Report

Merging #61 into master will decrease coverage by 0.09%.
The diff coverage is 95.34%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #61     +/-   ##
=========================================
- Coverage    96.9%   96.81%   -0.1%     
=========================================
  Files          15       16      +1     
  Lines         905      942     +37     
  Branches      183      194     +11     
=========================================
+ Hits          877      912     +35     
- Misses         28       30      +2
Impacted Files Coverage Δ
src/ExtensionCodec.ts 100% <100%> (ø) ⬆️
src/index.ts 100% <100%> (ø) ⬆️
src/JavaScriptCodec.ts 94.44% <94.44%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aed070f...a5a5d1b. Read the comment docs.

@gfx
Copy link
Member Author

gfx commented Jun 12, 2019

@sergeyzenchenko what do you think of it?

@gfx
Copy link
Member Author

gfx commented Feb 13, 2020

@gfx
Copy link
Member Author

gfx commented Jun 8, 2020

@gfx gfx closed this Jun 8, 2020
@gfx gfx deleted the javascript_codec branch June 8, 2020 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Works as replacement of serialize-javascript
3 participants