Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

mmap support? #141

Open
Open
@piranna

Description

@piranna

Does runtime.js support mmap? I know we don't have support for devices, but having so, we could have all the storage space mmap'ed and use it as main memory. This way, we could have an instant-on system working the ram just as a (big) disk cache, and also we could deprecate the concept of files hierarchy and just use raw objects as storage, as it was commented in other threads. Performance would not degrade but in fact it could be increased by not needing to copy the data twice (disk -> disk cache -> process memory). It could be a problem when working with "pure" variables that are not supposed to be stored, but they could be flagged some way to don't be backed (first candidates I can think are let and const defined ones). What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions