Coder Social home page Coder Social logo

Comments (7)

grundprinzip avatar grundprinzip commented on July 16, 2024

yup, this is true :(

from hyrise-v1.

schwald avatar schwald commented on July 16, 2024

Could we use deque instead of the vectors in the delta?

from hyrise-v1.

grundprinzip avatar grundprinzip commented on July 16, 2024

There are two things to consider here:

  • reseve() in FixedLengthVector -> here a reallocate is called.... no guarantees
  • resize() for the TX vectors in the store

No apparent solution comes to my mind that would allow fixing this...unfortunately

from hyrise-v1.

schwald avatar schwald commented on July 16, 2024

If we would use a deque as a container instead of vectors, this guarantees that references to elements stay valid even if the memory needs to be extended. However, iterators might get still invalidate which could be a problem...

http://stackoverflow.com/questions/913980/confusion-on-iterators-invalidation-in-deque
http://stackoverflow.com/questions/10373985/c-deque-when-iterators-are-invalidated

from hyrise-v1.

bastih avatar bastih commented on July 16, 2024

http://www.threadingbuildingblocks.org/docs/help/reference/containers_overview/concurrent_vector.htm ?

from hyrise-v1.

grundprinzip avatar grundprinzip commented on July 16, 2024

This only solves the problem for the TX vectors, but not the problem for the actual storage. Iterators are not really used in our case. What we could do is to perform some stitching in the FLV. Like allocate a block and keep track of all used blocks etc... This will be a bit overhead but accetable as long as the block size is large enought.

from hyrise-v1.

bastih avatar bastih commented on July 16, 2024

Like allocate a block and keep track of all used blocks etc..

What exactly are you proposing?

I think we should distinguish between FixedStorage (-> as in ungrowable after construction, used in Main) and GrowableStorage (-> threadsafe growable and probably powered by a concurrent_vector-like structure, used in Delta).

from hyrise-v1.

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.