Giter Club home page Giter Club logo

Comments (6)

simonster avatar simonster commented on May 30, 2024

mmap isn't magic; it just makes a file act like a block of memory, the same way swap/virtual memory do. It requires that the in-memory representation is identical to the on-disk representation. This is a limitation at the OS level.

You might be able to use the hyperslab interface, which doesn't use mmap, to read subsets of a compressed array, although I haven't tried it.

from hdf5.jl.

cmmp avatar cmmp commented on May 30, 2024

Hi Simon,

I see, the package is using mmap directly.

Pytables (http://pytables.github.io/usersguide/optimization.html#compression-issues) has interesting facilities for compressing data, some that are not on the HDF5 standard, and that work with lazy loading. But it does not use mmap directly, from what I understand it has its own implementation (http://comments.gmane.org/gmane.comp.python.pytables.user/2903).

Is the hyperslab interface implemented in HDF5.jl?

Thanks,
Cássio

from hdf5.jl.

timholy avatar timholy commented on May 30, 2024

Yes. See the docs.

from hdf5.jl.

cmmp avatar cmmp commented on May 30, 2024

Can you point me to it? https://github.com/timholy/HDF5.jl/blob/master/doc/hdf5.md does not mention hyperslab.

I'd like to read an array written as f["A", "chunk", (10000,1), "compress", 3] = A using lazy loading.

Thanks,
Cássio

from hdf5.jl.

timholy avatar timholy commented on May 30, 2024

That's what this section describes (the Asub = dset[2:3, 1:3] syntax).

from hdf5.jl.

cmmp avatar cmmp commented on May 30, 2024

Thanks Tim. I thought there was something else to it.

from hdf5.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.