LFF5644 / socketTCP

a programm that send / reciv files
2 stars 0 forks source link

Sehr ineffizient #3

Closed L3P3 closed 1 year ago

L3P3 commented 1 year ago

Erstens wird die gesamte Datei jedes Mal in JSON umgewandelt und zurück. (WTF)

Zweitens wird für jeden Chunk die gesamte Datei durchgegangen und jedes Byte einzeln angefügt, obwohl es extra für sowas buffer.slice(start, end) gibt!

LFF5644 commented 1 year ago

aua das wuste ich nicht

LFF5644 commented 1 year ago

https://github.com/LFF5644/socketTCP/commit/fe4b42984c36abe4e7782d5d50a513dc5b26ddeb