pikers / piker

(e2e) foss trading for non-tinas
GNU Affero General Public License v3.0
103 stars 17 forks source link

Store shm array size in token schema, use for loading #394

Closed goodboy closed 2 years ago

goodboy commented 2 years ago

Probably should have always been there in the first place 😂

Right now our shm loading api requires a size: int arg to maybe_open_shm_array() which means the loader needs to know the size ahead of time, but since shm arrays can't be resized anyway (or at least it's as expensive as just creating a new buffer), we might as well make the size an immutable part of the shm _Tokenand just pass it inside the token IPC msg..