You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Performance: Extend short_big_int to int64_t #1500
Activity
saghul commentedon May 20, 2026
IIRC that was a conscious decision to simplify the implementation.
CarterLi commentedon May 20, 2026
IMO 64-bit
short_big_intis very useful when exposing(u)int64_tvariables in C to javascriptquickjs-ng using
int32_tonly results in lower performance than the original project. doesn't it?saghul commentedon May 20, 2026
Likely yes, in microbenchmarks.
Do you have a real world use case that gets heavily impacted? We need to see some numbers.
CarterLi commentedon May 21, 2026
No. As I said before, I'm still experimenting quickjs-ng and trying to integrate it to my project.
I'm finding this when investigating a compiler warning:
I immediately realized that it can be improved for performance.
saghul commentedon May 21, 2026
What compilation flags are you using? I'm not getting that warning on macOS.
PS: There are a lot of shuch warnings on Windows, alas.
saghul commentedon May 21, 2026
Fix for the compilation warning: #1503
Move __JS_NewShortBigInt to quickjs.c and unify on int32_t
bnoordhuis commentedon Aug 11, 2026
I'll make the judgement call that we're not making changes until it's clear it's really needed. Closing.