-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Shared-memory read-only files #1931
Comments
I have to add that the current way bodies are handled does at least 1 additional copy to send the body and 1 to keep it as |
Hmm didn't we fix some of these things with #1841 or the previous moves to Assuming one such shared binary file is just a wrapped |
I am not certain it has any relevance, although it seems for
in theory - yes, but someone will need to do it ;) And it will need to be done for the whole response or request object as you can't just proxy 1 field.
again in theory - yes, but someone will need to do it, which given the way Also, I would argue that a lot of people will put those in things like FormData which ... will just copy it. Even using it with I am not saying that it is impossible or even that it will be hard (for some definition), just that, just having "immutable" returns to |
Regarding The only time |
@na-- Hi. You mention that you open the file with
I put a folder with images in the docker container. Then read a file with the name of these files and try to open all files with
Error what we have: We decided to use
|
@anton-makarov-photobox, I gave Unfortunately, there is no good way to do this in k6 yet... 😞 It's why this issue exists, to solve that problem. Until we implement it though, I'd suggest using fewer VUs (because every VU will keep a copy of the opened files in memory) with |
Prompted by https://community.k6.io/t/ways-to-transfer-files-in-tests/1552
After #1841, can we add an optional argument (e.g.
r
) toopen()
that would allow us to have only a single copy in memory. Like aSharedArray
, but forstring
/ArrayBuffer
data?And unlike
SharedArray()
, we probably don't even need to have aname
, we can use the absolute path to the file as the cross-VU sharing key.This would solve the pain point of being able to load test services that expect large file uploads, which are currently impossible with more than a few VUs, even with
SharedArray
.As a bonus, this
sync.Once
-like behavior will also fix #1771, right?The text was updated successfully, but these errors were encountered: