summaryrefslogtreecommitdiffhomepage
path: root/SessionID.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-04-27 12:01:20 -0400
committerJoey Hess <joeyh@joeyh.name>2017-04-27 12:08:37 -0400
commit5c542bb09e51eeb407a59f5bd4a2c6c460863446 (patch)
tree25c5b9cb53892b1445496d81357d9c889f162724 /SessionID.hs
parent952cc2941091518e61345f005b6e218bc34f75ec (diff)
downloaddebug-me-5c542bb09e51eeb407a59f5bd4a2c6c460863446.tar.gz
switch wire message seralization to use protocol buffers
This way it's not tied to details of the haskell binary library, and implementations in other languages should be fairly simple to do. The haskell protobuf library was used because it does not need extra tooling or build steps. So I didn't write a .proto file, but one could fairly easily be written by following ProtocolBuffers.hs and translating it. ProtocolBuffers.hs is *extremely* repetative and tedious code. Surely there must be a way to not need to write all of that? Oh well, I wrote it.. Sizes of serialized messages: ">>> debug-me session started": 121 sending a single key press: 169 This seems equally as efficient as the binary serialization was; that was 165 bytes before elapsedTime was added. This commit was sponsored by Ethan Aubin.
Diffstat (limited to 'SessionID.hs')
-rw-r--r--SessionID.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/SessionID.hs b/SessionID.hs
index 449f58c..c526849 100644
--- a/SessionID.hs
+++ b/SessionID.hs
@@ -8,7 +8,7 @@ module SessionID (
sessionIDUrl,
) where
-import Serialization
+import JSON
import System.FilePath
import System.IO