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

Consider caching binaries #3

Open
memegento-dev opened this issue Oct 29, 2023 · 2 comments
Open

Consider caching binaries #3

memegento-dev opened this issue Oct 29, 2023 · 2 comments

Comments

@memegento-dev
Copy link

Currently the binary is compiled for each request that is not efficient way to use compiled language as C.
To bring true performance of C into React component the binaries can be compiled only once and the used directly.
This will reduce the overhead of compilation time and filesystem usage.

Inspired by your project we used similar approach for PHP:
https://github.com/memegento/react-use-php

As PHP is interpreted language, we pass the source code directly to interpreter.

@sanskaromar
Copy link

sanskaromar commented Oct 29, 2023

That is a great idea. I can work on this.

For starters, should we go with a simple LRU cache library to cache code and outputs, and When the cache size exceeds the maximum, remove the least recently used item. We can also set ttl with cache I think. Or are we looking for more persistent storage kind of things like redis etc😮?

@elnardu
Copy link
Owner

elnardu commented Oct 29, 2023

just use sccache or something

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