WIP: feat: customizable max segment size [NOT MERGE] #124

Closed
septs wants to merge 5 commits from septs:customizable-max-segment-size into master

5 commits