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

Using fs.memoryfs.MemoryFS for speedups? #800

Open
twardoch opened this issue Aug 20, 2021 · 1 comment
Open

Using fs.memoryfs.MemoryFS for speedups? #800

twardoch opened this issue Aug 20, 2021 · 1 comment

Comments

@twardoch
Copy link
Contributor

ufoLib2 uses PyFilesystem2 ("fs"). There is fs.memoryfs.MemoryFS — has anyone tried it for potential speedups?

I mean, fontmake, glyphsLib etc. might yield speedups if the DesignSpace+UFO intermediates are written into MemoryFS

See fonttools/ufoLib2#161

@anthrotype
Copy link
Member

anthrotype commented Aug 21, 2021

There is no need to serialise intermediate UFOs to virtual disk, we can just pass them on as ufoLib2.Font objects like we already are doing (they are contained in the designspace source.font attributes). The only reason we are writing them out to disk is because MutatorMath required them to be reopened from filenames on disk. Since MutatorMath is now optional and superseded by fontmake.instantiator we can just not write them out unless the requested output is "-o ufo".

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

No branches or pull requests

2 participants