Storage v1 massively increase storage capacity #371
No reviewers
Labels
No Label
applications
BLOCKED
bug
design
duplicate
enhancement
fixed?
funding-needed
help wanted
infrastructure
invalid
payments
qubes
question
ready-for-implementation
refactor
spam
tapir-server
testing
tor
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cwtch.im/cwtch#371
Loading…
Reference in New Issue
No description provided.
Delete Branch "dan/cwtch:storageEmbiggen"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/217
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/218
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/219
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/220
@ -27,1 +24,3 @@
Acknowledged bool // peer to peer
Signature []byte // 64 bytes
PreviousMessageSig []byte // 64 bytes
ReceivedByServer bool // 1 byte / messages sent to a server
bools are 4 bytes to store
@ -115,3 +115,3 @@
func (ss *streamStore) updateBuffer(m model.Message) {
ss.messages = append(ss.messages, m)
ss.bufferByteCount += (model.MessageBaseSize * 1.5) + len(m.Message)
ss.bufferByteCount += (104 * 1.5) + len(m.Message)
model.MessageBaseSize?
this is v0, doesn't entierly mater, just hate updating it continually beyond it's old scope. so just put the old number here directly
@ -11,3 +12,4 @@
"sync"
)
// Going above the "if in doubt use" default size of Storagebox docs, that was traced back to
libsodium secretbox not storagebox
replace comment with "This number is larger that the recommend chunk size of libsodium secretbox by an order of magnitude. Since this code is not performance-sensitive (and is unlikely to gain any significant performance benefit from cache-efficient chunking) this size isn't currently a concern. TODO: revise and evaluate better storage options after beta"
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/221