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

Use Ox as serializer #194

Open
najamelan opened this issue Jan 25, 2017 · 4 comments
Open

Use Ox as serializer #194

najamelan opened this issue Jan 25, 2017 · 4 comments

Comments

@najamelan
Copy link

najamelan commented Jan 25, 2017

Ox is an object serializer which is faster than Marshal. I wonder if you'd be interested in a pull request that uses Ox in parallel?

Question is whether it's ok to add a dependency which requires compilation or rather use Ox if available and Marshal otherwise?

https://github.com/ohler55/ox
http://www.ohler.com/dev/ruby_object_xml_serialization/ruby_object_xml_serialization.html

@grosser
Copy link
Owner

grosser commented Jan 25, 2017 via email

@ms-ati
Copy link

ms-ati commented Feb 10, 2017

+1 for allowing the serializer to be configured, and giving an example in the README of using Ox!

@grosser
Copy link
Owner

grosser commented Feb 10, 2017 via email

@najamelan
Copy link
Author

I'm sorry I didn't get back to you about this. I was looking into dealing with performance issues by parallelizing, and when considering Parallel this came to mind. But then I realized I had quite big data structures that would need to be available to my working processes and that seemed a hassle, passing through redis which needs two more serialize operations to get data around. Then I though, damn, I would really be better of doing real multithreading, so I looked into jruby, which didn't really run refinements the way I need them to, rubinius didn't work either for some reason I already forgot, and so now I'm extending my app with a lib in rust that I'm working around the clock to implement. Faster work in the first place and I can multithread it on top of that without serializing. That's pretty much better than anything I can do with ruby directly.

So, since I'm working against a deadline, I won't be able to work on this proposal this week. In itself it looks like it's trivial to implement, so I wouldn't mind but I can't make promises right now. I will try to find some time next week to look into it.

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

No branches or pull requests

3 participants