quickjs-cross-compiler icon indicating copy to clipboard operation
quickjs-cross-compiler copied to clipboard

Improve performance under alpine linux

Open nicolas-duteil-nova opened this issue 1 year ago • 2 comments

Hi, could you please take a look at https://github.com/bellard/quickjs/pull/239 ? It improves the behaviour in alpine containers (where looping through all fds is quite inefficient) Let me know if you need more informations

nicolas-duteil-nova avatar May 09 '24 19:05 nicolas-duteil-nova

@nicolas-duteil-nova Feel free to open a PR. This project is focused on running musl based quickjs, so as long as your PR improves performances, I'll gladly merge it

ctn-malone avatar May 10 '24 07:05 ctn-malone

See https://github.com/ctn-malone/quickjs-cross-compiler/pull/2

Running exec'['date']) 100 times in a loop yields following values

fd_max(65535) : ~ 600ms fd_max(1024) : ~ 200ms fd_max(/proc): ~ 190ms

nicolasduteil avatar May 10 '24 17:05 nicolasduteil