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

Store net object in text file. #147

Open
imecar-github opened this issue Apr 29, 2024 · 3 comments
Open

Store net object in text file. #147

imecar-github opened this issue Apr 29, 2024 · 3 comments

Comments

@imecar-github
Copy link

imecar-github commented Apr 29, 2024

Hi. Thanks for amazing library.

I am using this library in my beaglebone black device. It is armhf architecture. And It has 1Ghz processor. Whenever I have to load huge dbc file it takes too long (~30sec). But I do not have to change dbc file everytime. Because of this, Can I store net object itself in text file?

Edit: Or If there is a serialization function (which I can not find, my bad if there is) we can save json file or something and read fast.

@xR3b0rn
Copy link
Owner

xR3b0rn commented Apr 29, 2024

You can make use of the C-code-generator. Could that fit your problem?

@imecar-github
Copy link
Author

imecar-github commented Apr 30, 2024

Thanks for reply. Actually no. That is not fix my problem. I am working on a JSON serializer but I have not enough information. My aim is, first dbc is parsed, it converts dbc to json file. After that it runs on a JSON file. It saves much time I think. Are there any serializer for that ?

@xR3b0rn
Copy link
Owner

xR3b0rn commented May 1, 2024

There are conversion functionalities in this library implemented, sadly JSON is not one of them. However, you should be able to implement such conversion functionlity yourself. As a good starting point you can look into Network2DBC.c file. This file implements the logic of converting the internal representation of the DBC network into a DBC file.

PRs are welcome!

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

2 participants