-
Notifications
You must be signed in to change notification settings - Fork 51
Working without filesystem #52
Comments
That sounds great. My first concern would be memory usage, but we're already storing most of the content of the EPUB in memory anyway, aside from images and fonts (off the top of my head) so it doesn't seem like it would really be an issue. I like the flexibility of doing this in memory. There was a fork of this library that implemented something like this already in case it's useful: arkhaix@8516118 They added benchmarks too 😎 arkhaix@9cc858f |
I still need to think about it, but my idea is to use an abstraction and a kind of ‘Register’ function that would allow switching from an implementation to the other. |
PR #54 is in draft. TODO:
Meanwhile, I guess that the abstraction mechanism won't change, anybody's welcome to comment the PR. |
I wasn't sure if #54 fully covered this issue so I left it open. Feel free to close if it's done. Thanks! |
I am trying to compile my tool into webassembly.
The problem is that this library is using temporary files on the fs, and this is forbidden by webassembly.
I could be nice to add an option to deal with the media in a pseudo memory fs.
This would lead to a new write method that could take an io.Writer as a parameter (and eventually deprecating the WriteFile method).
I can make a POC when I have time if you are interested (and you can assign this issue to me)
The text was updated successfully, but these errors were encountered: