• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

powsybl / powsybl-core / 5431
85%

Build:
DEFAULT BRANCH: master
Ran 01 Mar 2019 11:02AM UTC
Jobs 1
Files 1009
Run time 2672min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5431

push

travis-ci-com

geofjamg
time-series: TimeSeriesTable, allow to have more than 2gb of data (#634)

* time-series: add concurrent loading test

* time-series: CompactStringBuffer, use zero as the null marker to avoid the need to write -1 on the whole buffer

For ByteBuffer::allocate, ByteBuffer::allocateDirect, the javadoc guarantees
"each of its elements will be initialized to zero".
For MemoryMappedBuffer, the user controls the file and can create it with zeroes
(if it is extended, virtually all systems extend it with zeros)

* time-series: TimeSeriesTable, allow to have more than 2gib of data

To do this, we use 1 gibi (2^30) *bytes* segment into the table. This allows to
use memory mapped buffer for these segments (it would not have been possible if
we had used buffers of 2^30 *elements*) and to use bitshifts and bitmasks to
compute indices. It's the largest possible value so the overhead is minimized.

Each time series is still constrained on its own to have a number of elements
that fits in an array (~2 billions). We keep the previous fillBuffer
implementations because they allow toArray() to return a single array without
extra copying (and that's up to 16 gb for doubles). If we had removed the
previous fillBuffer implementation, then starting from ~100 million doubles we
would have had to make copies from the multiple 2gib buffers back into one big
array.

* time-series: add Object.requireNonNull(buffer) to CalculatedTimeSeries::fillBuffer

This makes the code more homogeneous (other fillBuffer methods have it).

29906 of 37919 relevant lines covered (78.87%)

0.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5431.1 01 Mar 2019 11:02AM UTC 0
78.87
Travis Job 5431.1
Source Files on build 5431
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #5431
  • 32f2772e on github
  • Prev Build on master (#5420)
  • Next Build on master (#5434)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc