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

Reducing memory copies on the Web #242

Open
tidoust opened this issue Nov 17, 2020 · 3 comments
Open

Reducing memory copies on the Web #242

tidoust opened this issue Nov 17, 2020 · 3 comments
Assignees

Comments

@tidoust
Copy link
Member

tidoust commented Nov 17, 2020

@dontcallmedom and I organized a TPAC breakout session on memory copies following discussions during the workshop on Web and Machine Learning (see w3c/machine-learning-workshop#93).

Discussions during the breakout session revealed the need to create a place for people from to document pain points from different perspectives (streams, WebGPU, WebAssembly, WebTransport, WebCodecs, etc.) and investigations/ideas that could help reduce the number of memory copies needed in some scenarios.

@sideshowbarker created the WICG/reducing-memory-copies repository to coordinate the effort. It seems likely that different patterns and solutions will be needed depending on the scenarios. No direct work on a technical solution is expected at this stage.

@samuelweiler
Copy link
Member

repo appears to have had no activity for 16 mo. propose to close?

@tidoust
Copy link
Member Author

tidoust commented Feb 15, 2022

The topic itself is still very current. One of the main scenarios that triggers discussions on memory copies is media processing in real-time because 30-60 frames per second of decoded video data takes a lot of memory. Other scenarios that involve processing of lots of data may be affected too.

The topic was discussed during the W3C/SMPTE workshop on Professional Media Production in November 2021:

The topic is also under discussion at technologies/group boundaries. Some known boundaries:

The WICG repository is an attempt to coordinate cross-group discussions and align on directions. It has indeed not gained much traction until now.

One of the directions @dontcallmedom and I are exploring is finding individuals/companies who could perhaps inform quantified discussions on memory copies through prototypes.

@pchampin
Copy link

Slightly related: @BruJu, a master student that I supervised, worked on an RDF implementation in Web Assembly, and had to work around some performance issues related to memory copies btw WASM and JS. We published a paper about that at the Resource Track of ESWC: https://hal.archives-ouvertes.fr/hal-03262817

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

5 participants
@pchampin @tidoust @plehegar @samuelweiler and others