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

Investigate removing EMULATE_FUNCTION_POINTER_CASTS #56

Open
samwillis opened this issue Mar 26, 2024 · 0 comments
Open

Investigate removing EMULATE_FUNCTION_POINTER_CASTS #56

samwillis opened this issue Mar 26, 2024 · 0 comments

Comments

@samwillis
Copy link
Collaborator

Emscripten option EMULATE_FUNCTION_POINTER_CASTS is currently required to compile as Postgres makes usage of function pointer casts. However this is a potential performance penalty. We should investigate a route to removing the need for this option.

https://emscripten.org/docs/porting/guidelines/function_pointer_issues.html

Use EMULATE_FUNCTION_POINTER_CASTS. When you build with -sEMULATE_FUNCTION_POINTER_CASTS, Emscripten emits code to emulate function pointer casts at runtime, adding extra arguments/dropping them/changing their type/adding or dropping a return type/etc. This can add significant runtime overhead, so it is not recommended, but is be worth trying.

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

1 participant