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

Add ability to open remote files #22

Open
ddohler opened this issue May 10, 2018 · 2 comments
Open

Add ability to open remote files #22

ddohler opened this issue May 10, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@ddohler
Copy link
Collaborator

ddohler commented May 10, 2018

This could either be accomplished by modifying loam.open() to detect URLs, or by creating a new method specifically for the purpose of opening remote files.

Either way, the corresponding Emscripten file will need to be created using FS.createLazyFile().

@ddohler ddohler added the enhancement New feature or request label May 10, 2018
@ddohler
Copy link
Collaborator Author

ddohler commented Feb 9, 2019

FS.createLazyFile() is not a perfect solution here, because the default implementation downloads a megabyte at a time, which can feel sluggish for users. It may be necessary to add a contribution to GDAL core that makes use of Emscripten's fetch() API: https://groups.google.com/forum/#!topic/emscripten-discuss/gMV6_b6oszQ

@ddohler
Copy link
Collaborator Author

ddohler commented Aug 17, 2023

Emscripten now has the setting SMALL_XHR_CHUNKS which may make this work better: https://github.com/emscripten-core/emscripten/blob/5ecd2d9d62fd246525d37a4337cfca858b43e3ef/src/library_fs.js#L1704

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant