Skip to content

Conversation

@bltavares
Copy link
Member

On random-access-storage
issue
datrs/random-access-storage#6 has changed all
types from usize into u64 to be able to handle more than 4gbs on
32bits systems.

usize is 32 bits on a 32 bit system, so the storage would be limited
to 4GB on such a system.

When changing random-access-storage on hypercore (tracking:
datrs/hypercore#100) one of the things I've
noticed is that it wold be easier to also make tree-index use
u64 to integrate with random-access-storage. Very likely, this also
means that we would need to bump to use more than 32Gb storages on
tree-index.

I've simply changed all declarations of usize into u64. All tests are
passing.

It also fixes Travis CI and update libraries to latest version.

Needs:

Choose one: is this a 🐛 bug fix, a 🙋 feature, or a 🔦 documentation change?

Checklist

  • tests pass
  • tests and/or benchmarks are included
  • documentation is changed or added

Context

Semver Changes

On [random-access-storage](https://github.com/datrs/random-access-storage)
issue
datrs/random-access-storage#6 has changed all
types from `usize` into `u64` to be able to handle more than 4gbs on
32bits systems.

> usize is 32 bits on a 32 bit system, so the storage would be limited
to 4GB on such a system.

When changing `random-access-storage` on `hypercore` (tracking:
datrs/hypercore#100) one of the things I've
noticed is that it wold be easier to also make `tree-index` use
`u64` to integrate with `random-access-storage`. Very likely, this also
means that we would need to bump to use more than 32Gb storages on
`tree-index`.

I've simply changed all declarations of usize into u64. All tests are
passing.

It also fixes Travis CI and update libraries to latest version.

Needs:
---

- [ ] datrs/flat-tree#44
Cargo.toml Outdated
[dependencies]
flat-tree = "3.4.0"
sparse-bitfield = "0.8.1"
flat-tree = { version = "4.1.0", git = "https://github.com/bltavares/flat-tree", branch = "usize-to-u64" }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be updated before we merge. Thanks!

@bltavares bltavares merged commit fab4ef7 into datrs:master Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants