Coder Social home page Coder Social logo

Will there be optimizations? about sts HOT 6 CLOSED

arcetri avatar arcetri commented on August 25, 2024
Will there be optimizations?

from sts.

Comments (6)

lcn2 avatar lcn2 commented on August 25, 2024

The bit runs count test could be optimized (runs.c). Uploading bits to a byte array (BitSequence **epsilon), IMHO, is also not a good idea...

Do you have a proposed patch that could be made into a pull request @zenbooster ?

from sts.

lcn2 avatar lcn2 commented on August 25, 2024

The bit runs count test could be optimized (runs.c). Uploading bits to a byte array (BitSequence **epsilon), IMHO, is also not a good idea...

The models that run are extremely data intensive. Early on we did model doing disk I/O for accessing data. As disk I/O, even in SSDs is slow compared to random access memory, code ran orders of magnitude slower.

An alternative approach could use memory mapped files. We looked at this and concluded that when the memory map the size of the data file, you might as well just read the entire dataset into ram at one time and skip the mapping overhead and complexity. Using a sliding window approach, one where the map region is a sub-set of the data size and move around did run well, introduced memory map complexity, and was eventually limited to I/O speed as blocks of disk were paged in.

The sts tool is designed to operate on very large data sets (in order to produce statically meaningful results).

For systems that do NOT have enough ram to hold the data set, the tool may be run in parallel over multiple machines, or in sequential batches (see the -j jobnum and -m mode flags).

from sts.

lcn2 avatar lcn2 commented on August 25, 2024

The bit runs count test could be optimized (runs.c). Uploading bits to a byte array (BitSequence **epsilon), IMHO, is also not a good idea...

The decision to put 1 bit into a byte was a performance-based decision. The code generated that needed to pull out bits in as byte slowed down the computation.

We found that the 1 to 8 expansion in ram was worth the performance improvement on the data access side.

from sts.

lcn2 avatar lcn2 commented on August 25, 2024

We would be open to a demonstration, @zenbooster, of a code patch that you might suggest in a pull request, assuming that such a pull request improved overall performance.

from sts.

zenbooster avatar zenbooster commented on August 25, 2024

Something like that.

I thought that maybe other algorithms can be optimized somehow ...

from sts.

lcn2 avatar lcn2 commented on August 25, 2024

We would certainly consider a replacement proposal using Goncharov's algorithm, @zenbooster, in the form of a pull request.

from sts.

Related Issues (7)

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.