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 flat-tree 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
flat-tree.

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

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 `flat-tree` 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
`flat-tree`.

I've simply changed all declarations of usize into u64. All tests are
passing.
@bltavares bltavares requested a review from khernyo February 23, 2020 14:02
bltavares added a commit to bltavares/merkle-tree-stream that referenced this pull request Feb 24, 2020
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 `merkle-tree-stream` 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
`merkle-tree-stream`.

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

Needs:
---

- [ ] datrs/flat-tree#44
bltavares added a commit to bltavares/tree-index that referenced this pull request Feb 24, 2020
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
yoshuawuyts pushed a commit to datrs/merkle-tree-stream that referenced this pull request Mar 2, 2020
* Change from usize to u64

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 `merkle-tree-stream` 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
`merkle-tree-stream`.

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

Needs:
---

- [ ] datrs/flat-tree#44

* Fix travis
@bltavares bltavares merged commit 709b2d5 into datrs:master Mar 2, 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